troubleshooting Question

WS_FTP Script "Connect Failure" Handling

Avatar of jdn717
jdn717 asked on
Windows Batch
7 Comments1 Solution3166 ViewsLast Modified:
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?

LOG E:\BatchProcesses\ReceivedFiles\RiskImport\RiskImportXML.log
TRACE Screen
CONNECT TBI!RiskImport
ONERROR GOTO DISCONNECT
MGET *.pgp E:\BatchProcesses\ReceivedFiles\RiskImport\Files\
LABEL FILEDELETE
MDELETE *.PGP
LABEL DISCONNECT
CLOSE
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros