Whats an appropriate way of handling a connection failure in ws_ftp script? I have a job that runs nightly and Im not sure what to do below. My manager just gave me this task and Im not familiar with the keywords.
This is the code in the .scp file that is passed into the ftpscrpt application via a .bat file. The connection failure takes places at line 3, of course :) How should I handle this issue? Increase the timeout? A loop?
If it's the case that the server can be down sometimes when the script runs, you could add a PING in the BAT script before the WSFTP execution, and let it loop until the server responds to a PING.