I have a polling process that runs 24x7 ( internal site ) and for the most part has no problems except that they shutdown the the internal site every three or four weeks and my process then dies.
I have a simple setup: $MyFtp = Net::FTP->new($GlblInfo{ipaddr}, Debug => 1); $MyFtp->login($GlblInfo{logon},$GlblInfo{pw}); Yes. There is no checking on the new and what happens is that new fails and then when it tries the login, I get a failure for the method login. So how do I surround the new so that if it fails, I can go to sleep for say five minutes and then try again until I hit some limit or timeframe? Any thoughts or insights would be gratly appreciated. Wags ;) David R Wagner Senior Programmer Analyst FedEx Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us ********************************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ********************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/