expect command spawns incorrectly

Steven W. Orr steveo at syslang.net
Sat Nov 28 23:47:59 UTC 2009


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

Try this:

send "sesame\r"

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091128/615b935a/attachment-0001.sig>


More information about the fedora-list mailing list