Sysax Product Forums / Sysax FTP Automation / Bugs and Feature Requests / Evaluating FTP Automation
Posted:  08 Nov 2008 11:58
We are evaluating the FTP automation. So far it is working very well. Only in the couple of days we are working with the scheduler, it seems that if the FTP server on the other side is not responding while logging in, the script never stops running. Is there a way to have a kind of timeout in the script?
Posted:  08 Nov 2008 12:00   Last Edited By: sysaxsupport
You can always check for a successful connection after the ftpconnect command by using the following check and can use te endscript command to stop the script:

ftpconnect "myserver.com", 21, "myname", "mypass";
if ftpresult ne success begin
print "Could not connect to ftpserver";
endscript;
end



------------------------------------------------
Secure File Transfer Solutions
 

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0