I don't think this is network related.  I would pay attention to the "uninitialized 
value" problem.  It comes up everytime you are try to compose file names to open file 
handles with bad data.  You end up not opening the file and then either bombing out or 
trying to write to a file you don't have up.  Don't depend on the "or die", it won't 
save you.

This can be inside a foreach or a while loop with <> operators, even if you have the 
if defined <> set up too.

I would suggest adding a little code to edit or check these lines.  I know you said it 
works OK as a cron job and I can't explain it, just have a feeling that you are 
creating an argument with bad data from a time or date call. 

$ftp = Net::FTP->new($host,debug => 1); 
$rc  = $ftp->login($user,$pass); # open connection  # check return

my @curfiles = @_; # all files passed in   #is this empty?

foreach my $file (@curfiles){   # right here check $file
foreach my $file (@todaysfiles){
$ftp->get($file); # check

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to