For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2008 > Looking for example of how to keep an FTP processing running if the









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Looking for example of how to keep an FTP processing running if the
Wagner, David --- Senior Programmer Analyst --- WG

2008-03-24, 7:05 pm

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 ws and my process then dies.

I have a simple setup:

$MyFtp =3D Net::FTP->new($GlblInfo{ipaddr}, Debug =3D> 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.=09

Wags ;)
David R Wagner
Senior Programmer Analyst
FedEx Freight
1.408.323.4225x2224 TEL
1.408.323.4449 FAX
http://fedex.com/us=20


****************************************
******************************
This message contains information that is confidential and proprietary to F=
edEx Freight or its affiliates. It is intended only for the recipient name=
d and for the express purpose(s) described therein. Any other use is proh=
ibited.
****************************************
******************************

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com