The expect file begins with
spawn sftp -oProxyCommand='....' user@host
expect "password:"
send "sesame\n"
expect "sftp> "
It never gets the part to ask for the password, instead the sftp command fails, showing the "usage".
However, if I cut/past the sftp command, it work fine...
It's as though the expect program is somehow messing up the command string to be "spawned".
I've tried various uses of quotes and so on, but I just can't get past this.
The -d option on expect doesn't really show me the correct detail other than it says it is spawning the correct commend... yet sftp always returns with "the correct usage help text", so obviously what it says it's doing and what's actually being done isn't quite the same.
Does anybody have any experience with "expect" that could shed some light on this?
Thanks
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines