Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with Expect 5.21 for Windows and SCP

Status
Not open for further replies.

Stompie

Programmer
Jan 7, 2004
1
US
I am trying to execute a simple spawn SCP scenario to download files from a remote server.

This script is timing out:

spawn scp USERID@SERVERIP:FILEPATH_NAME .
set timeout 30
expect {
timeout {
puts "process timed out"; exit
}
"Password:"
}
send "PASSWORD"

I have no trouble running a script using SSH. It is just SCP that timesout.

Any information will be greatly appreciated.

Thanks,

Stompie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top