-bash: spawn: command not found

May 23, 2016 at 11:15:33
Specs: Linux
#!/usr/bin/expect
spawn sftp <user@server>
expect "password:"
send "pwd\n";
expect "sftp>"
send "cd incoming\n"
expect "sftp>"
send "put zz.txt\n"
expect "sftp>"
send "quit\n"
send "exit\n"

-bash: spawn: command not found
couldn't read file "password:": no such file or directory
-bash: send: command not found
couldn't read file "sftp>": no such file or directory
-bash: send: command not found
couldn't read file "sftp>": no such file or directory
-bash: send: command not found
couldn't read file "sftp>": no such file or directory
-bash: send: command not found
-bash: send: command not found


See More: -bash: spawn: command not found

Report •

#1
May 24, 2016 at 01:18:34
Does the file /usr/bin/expect exist?

Report •
Related Solutions


Ask Question