Topic "Script keeps reconnecting indefinitely"

Author Message

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"

Script contains:
option batch on
option confirm off
open ftp://root:<password>@<servername>.test.local
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"

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
Thanks for your post. This issue is being tracked already.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License