Topic "setting a limited number of retries"

Author Message
HappyChappy
[View user's profile]

Joined: 2016-06-08
Posts: 3
Hello,

Apologies, I am sure this is very simple question.

I am trying to transfer a file from my site to another site on a schedule. The commands I pass are:

Command-line: "C:\WinSCP\WinSCP.exe" /console=*** /consoleinstance=_****_** "/command" "option batch abort" "open ftps://A******:*******@ftp.***.*****.com:990/*****/" "put ""C:\ProgramData\******_**_20160505.txt""" "exit"

Usually it works, however there are times when it fails due to not establishing a connection within the 15 sec timeout period. Is there a way to get the connection attempt to retry, twice, or three times, before aborting?

Thanks,
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Did you try setting a longer timeout with open -timeout=60 ...?
HappyChappy
[View user's profile]

Joined: 2016-06-08
Posts: 3
Thanks,

So I should change code to:

Code:
"C:\WinSCP\WinSCP.exe" /console=*** /consoleinstance=_****_** "/command" "option batch abort" "open -timeout=60 ftps://A******:*******@ftp.***.*****.com:990/*****/" "put ""C:\ProgramData\******_**_20160505.txt""" "exit"
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Correct.
HappyChappy
[View user's profile]

Joined: 2016-06-08
Posts: 3
thank you, will give it a go
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License