setting a limited number of retries

Advertisement

HappyChappy
Joined:
Posts:
10

setting a limited number of retries

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,

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,094
Location:
Prague, Czechia

Re: setting a limited number of retries

Did you try setting a longer timeout with open -timeout=60 ...?

Reply with quote

HappyChappy
Joined:
Posts:
10

Thanks,

So I should change code to:

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

Reply with quote

Advertisement

You can post new topics in this forum