Timeout error script stop

Advertisement

Ahmed shawky
Guest

Timeout error script stop

open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx..."
# Change remote directory
cd /home/user
# Download file to the local directory d:\
get examplefile.txt d:\
# Connect as a different user
open sftp://user2:password@example.com/
# Change the remote directory
cd /home/user2
# Upload the file to current working directory
put d:\examplefile.txt 
# Exit WinSCP
exit
My question now when I run script like this for more than 100 SFTP servers it stop automatically if it cant reach the SFTP server and doesn't continue for the next command open sftp.......
Any help please

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum