Frequently Asked Questions

The FAQ list is a great starting point for basic questions about what you can do with Robo-FTP.

Orange_arrowOrange_arrow Browse the FAQ list now

Knowledge Base

Our searchable knowledge base covers most of the common errors and implementation problems you are likely to encounter.

Orange_arrowOrange_arrow Search the Knowledge Base now

Contact Technical Support

If you can't find the answers you need online, get in touch with our Technical Support staff.

Orange_arrowOrange_arrow Contact Technical Support now

Professional Services

Need more than basic technical support? Our Professional Services team can help you deploy a complete solution.

Orange_arrowOrange_arrow Contact Professional Services now

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.


limit_retries.s

Download

Error-handling generally falls into to two categories:

  1. Unrecoverable errors, where you typically want to abort the process and notify somebody
  2. Recoverable errors, where you want to simply re-try the failed attempt until it works.

Things get a little trickier when you encounter what should be a recoverable error, but under certain circumstances does not recover. If you are not careful, you can end up with an infinite loop.

One way to avoid this is to use LOOPCOUNT and related commands to limit the number of times you retry something.

The following script attempts to connect to an FTP site 10 times, pausing for one minute between attempts. If it can't connect after 10 tries, it aborts and sends an email notification.


  1  loopcount 10
  2  :connect_loop
  3  ftplogon "mysite"
  4  LOOPIF goto pause_and_retry else goto connected
  5  ;; Connection attempts failed 10 times
  6  CREATEMAIL "Script Notifier" "noreply@mycompany.com" "Connection failed" "FTP server appears to be down" ""
  7  sendmail "smtp.mycompany.com" "Sys Admin" "sysadmin@mycompany.com"
  8  EXIT
  9  
 10  :pause_and_retry
 11  pause /for=60
 12  goto connect_loop
 13  
 14  :connected
 15  ;; Connection worked -- continue script

Browse complete list of scripts

Home | Solutions | Professional Services | Technical Support | Download | Company | Contact Us | Partners | Site Map | Terms of Service | Privacy Policy |