分类: LINUX
2012-05-24 11:27:05
点击(此处)折叠或打开
点击(此处)折叠或打开
点击(此处)折叠或打开
psop_sun2013-06-03 14:30:47
$ which expect ; ls -l /usr/bin/expect; cat test.sh ; sh test.sh
/usr/bin/expect
-rwxr-xr-x 1 root root 11792 Oct 17 2011 /usr/bin/expect
#!/usr/bin/expect -f
set timeout 5
spawn ssh localhost "pwd"
expect "password:"
send "xxxxxx\r"
interact
test.sh: line 1: #!/usr/bin/expect: No such file or