Operating System - Linux
1752729 Members
5793 Online
108789 Solutions
New Discussion юеВ

Automating SFTP using expect is failing.

 
SOLVED
Go to solution
Eric Bakken
Regular Advisor

Automating SFTP using expect is failing.

Hello all,

The problem is that the expect script runs for about 20 seconds and then just ends without waiting for the files to be completely transferred.

I've wondered if I can just skip using expect by setting up keys. Any suggestions? Thanks,

-Eric
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: Automating SFTP using expect is failing.

Shalom,

Set up the keys and do the first login before you run the script.

The keys and known_hosts setup can't be done with a script anyway. For security reasons they are interactive only.

Once you test on the command line that password free sftp works, then all you need to watch for is the user id being deactivated for bad logins or expiring.

:=)
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Bakken
Regular Advisor

Re: Automating SFTP using expect is failing.

Ok, Thanks for your help.