On 11/28/09 02:43, quoth Donald Russell:
> I am trying to use the expect program to automate an sftp process....Try this:
>
> The expect file begins with
>
> spawn sftp -oProxyCommand='....' user@host
> expect "password:"
> send "sesame\n"
> expect "sftp> "
send "sesame\r"