in batch mode, a "retry" option would be most helpful

Advertisement

Guest

in batch mode, a "retry" option would be most helpful

Currently, there are 4 batch mode options:
off,on,abort,continue. It would be extremely useful if there was a retry option (eg retry=5 or something). Here's the context:
I have a batch that connects to download files. I know the files exist because WINSCP attempts to download them (plus I see them when I browse the remote directory). During download, something goes wrong and the download fails:
. 2018-11-20 08:30:10.887 File: '/OUTFILES/DETAILS_20181119.txt' [2018-11-19T12:54:20.000Z] [1082]
. 2018-11-20 08:30:10.887 Copying "/OUTFILES/DETAILS_20181119.txt" to local directory started.
. 2018-11-20 08:30:10.887 Binary transfer mode selected.
. 2018-11-20 08:30:10.887 Starting download of /OUTFILES/DETAILS_20181119.txt
> 2018-11-20 08:30:10.887 TYPE I
< 2018-11-20 08:30:10.902 200 Transfer mode set to BINARY
> 2018-11-20 08:30:10.902 PASV
< 2018-11-20 08:30:10.918 550 Command PASV failed
> 2018-11-20 08:30:10.918 PORT 192,168,10,203,221,87
< 2018-11-20 08:30:10.949 550 Command PORT failed
. 2018-11-20 08:30:10.949 Copying files from remote side failed.
* 2018-11-20 08:30:10.949 (ExtException) **Copying files from remote side failed.**
* 2018-11-20 08:30:10.949 Command PORT failed
. 2018-11-20 08:30:10.949 Asking user:
. 2018-11-20 08:30:10.949 Error transferring file '/OUTFILES/DETAILS_20181119.txt'. ("Copying files from remote side failed.","Command PORT failed")
< 2018-11-20 08:30:10.949 Script: Error transferring file '/OUTFILES/DETAILS_20181119.txt'.
< 2018-11-20 08:30:10.949 Script: Copying files from remote side failed.

< 2018-11-20 08:30:10.949 Command PORT failed
* 2018-11-20 08:30:10.949 (ESkipFile) Error transferring file '/OUTFILES/DETAILS_20181119.txt'.
* 2018-11-20 08:30:10.949 Copying files from remote side failed.
* 2018-11-20 08:30:10.949 Command PORT failed
. 2018-11-20 08:30:10.949 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2018-11-20 08:30:10.949 Script: Failed
> 2018-11-20 08:30:10.949 Script: exit
. 2018-11-20 08:30:10.949 Script: Exit code: 1
. 2018-11-20 08:30:10.949 Disconnected from server

An option to retry the download (or upload fore that matter) a few times would make life a lot easier... Maybe a second or two delay between reties would also help.
Thanks.
Oh yes... I'm using WinSCP Version 5.13.2 (Build 8455) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum