New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deamon exits on ftp timeout #818
Comments
From rah@atc.ll.mit.eduI have written a perl daemon that does ftp on an hourly basis, downloading Timeout at /opt/perl/lib/site_perl/5.005/Net/FTP.pm line 422 I have contacted GBAR, and he says that this timeout is due to the ftp #!/bin/ksh set -v ftp_ruc --h "140.90.6.103" --d4 "/ncepe/pggrib" --r4 ".*$" --d8 "/ncepe/p211grib" --r8 ".*$" #!/opt/perl/bin/perl -w # $, = " "; use Getopt::Long; @mon = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec); GetOptions( # strip trailing slash # set up program as daemon # set up handler to use INT, TERM, or HUP to kill program # execute daemon loop, waiting approx. one hour between ftp's $ftp->binary() or do {print "$ct: binary: $ftp->message\n"; goto QUIT;}; @t = gmtime(); # build remote dir path # build local dir path # mkdir the local directory to hold ftp'ed data # ls remote dir, match against $pre_40km, and get files # build remote dir path # build local dir path # mkdir the local directory to hold ftp'ed data # ls remote dir, match against $pre_80km, and get files $ftp->quit; QUIT: # calculate time in secs to sleep till next hourly ftp Perl Info
|
From [Unknown Contact. See original ticket]
What's wrong with C<eval> ? François Désarménien |
From @gsarOn Fri, 05 Nov 1999 16:30:52 +0100, =?iso-8859-1?Q?Fran=E7ois=20D=E9sarm=E9nien
And why was the report sent to perlbug? Net::FTP is not maintained as Sarathy |
From [Unknown Contact. See original ticket]Gurusamy Sarathy wrote:
I think this is because Graham saying it is not a FTP.pm problem, so he thoughts Email and misunderstanding are often flame sources :-( François Désarménien |
Migrated from rt.perl.org#1746 (status was 'resolved')
Searchable as RT1746$
The text was updated successfully, but these errors were encountered: