由 QQ » 週四 3月 23, 2006 4:04 am
#!/usr/bin/expect
spawn ssh 192.168.0.3 -l root
expect password:
send "xxxxxx\r"
interact
exit
錯誤訊息
e.sh: line 3: spawn: command not found
couldn't read file "password:": no such file or directory
e.sh: line 5: send: command not found
e.sh: line 6: interact: command not found