Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable
- From: "Wagner, David --- Senior Programmer Analyst --- WGO"
- Date: Mon, 24 Mar 2008 13:25:27 -0500
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.
**********************************************************************
.
- Follow-Ups:
- Prev by Date: Re: Concatenating Strings
- Next by Date: Re: Concatenating Strings
- Previous by thread: Concatenating Strings
- Next by thread: Re: Looking for example of how to keep an FTP processing running if the Ip Address is down or unavailable
- Index(es):