Posted: 08 Nov 2008 11:58 | ||
Registered User Currently Offline |
Posts: 1 Join Date: Nov 2008 |
|
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 | ||
Moderator Currently Offline |
Posts: 367 Join Date: Nov 2008 |
|
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 |