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
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