FTP to second FTP server on Failure
FTP to second FTP server on Failure
- crofte
- Posts: 2
- Joined: Mon Dec 05, 2011 7:18 am
Re: FTP to second FTP server on Failure
Pseudo code for Calling separate modules (assuming you only have 2 IP Addresses):
- Code: Select all
<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>
The Pseudo Code for reading the IP Addresses from a Spreadsheet or Database would entail your use of multiple projects.. using a callProject within a loop reading the records. If you need help with this, please let me know... I have some examples.
Hope this helps...
-Rick
- RElliott63
- Posts: 14
- Joined: Thu Jul 01, 2010 9:42 am
Who is online
Users browsing this forum: No registered users and 1 guest