Automate a download but getting stuck if file got deleted during the process

Advertisement

kevink
Guest

Automate a download but getting stuck if file got deleted during the process

I automated a download using winscp and it was working for 2 years until the software that puts the files there was upgraded and now it deletes files if its job was not successful. I get a Received error message from remote side: 'scp: /path: no such file or directory'
(O)K or (A)bort:
In the command line its not an issue because I can click O and continue, but in the script it just exits.
How to I tell it to OK everything? The basics of the script is below.

option failonnomatch off
get -preservetime -neweronly /path/* destination\
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: Automate a download but getting stuck if file got deleted during the process

This is what option failonnomatch off should achieve.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum