FTP to second FTP server on Failure
Posted: Wed Dec 07, 2011 1:59 pm
Can you create a project to FTP a file to a remote server, and if the project fails for any reason, (after a few retries) FTP to another FTP server
<Module Main <dependsOn=FTPMain,FTPAlternate>
...Print Success Message (If ftpError eq 0)
...Email Notification (If ftpError gt 0)
</Module>
<Module FTPMain>
<setVariable label="Set ftpError" version="1.0" name="ftpError" value="0" />
<FTP ResourceID=<1st IP Address> ..... onError="setVariable:ftpError=1">
...
...Do something if ftpError=0...
</Module>
<Module FTPAlternate executeOnlyIf="${ftpError} gt 0>
<setVariable label="Set ftpError" version="1.0" name="ftpError" value="0" />
<FTP ResourceID=<1st IP Address> ..... onError="setVariable:ftpError=1">
...
...Do something if ftpError=0...
</Module>