Posted: 2010-10-05 10:29
I've got a script to use WinSCP (v4.2.9 on Windows Server 2003) to get some directories from a server and then disconnect.
After a certain point it hits an error transferring a file, loses the connection and prompts the user for an action. After a while it reconnects, tries copying a couple directories, times out again and keeps repeating this process.
The problem is that I need it to not prompt as I want it to be run from a scheduled task and I need it to not keep reconnecting as it currently keeps trying (doing nothing except growing the log file) until you kill the process. Can anyone offer any advice on this?
Command to run script:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /script="E:\SysAdmin Scripts\WinSCP-test-script-<servername>.txt" /log="E:\SysAdmin Scripts\<servername>-test-4-10-10.log"
option batch on
option confirm off
option transfer binary
get /bin "E:\Backups\<servername>\bin"
get /etc "E:\Backups\<servername>\etc"
get /lib "E:\Backups\<servername>\lib"
get /mnt "E:\Backups\<servername>\mnt"
get /opt "E:\Backups\<servername>\opt"
get /sbin "E:\Backups\<servername>\sbin"
get /usr "E:\Backups\<servername>\usr"
get /var "E:\Backups\<servername>\var"
Location: Prague, Czechia
Thanks for your post. This issue is being tracked already.
You can post new topics in this forum
And it's free!