Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Net::Ftp Issue

by kirillm (Friar)
on Feb 04, 2008 at 22:54 UTC ( #666138=note: print w/replies, xml ) Need Help??


in reply to Net::Ftp Issue

Hi there,

You say that this code

$ftp->get("Report_$date.csv") or die "Cannot retreive file: $!\n", $ft +p->message;

gives this error message:

Cannot retreive file: Bad file descriptor

As you see, $ftp->message is actually empty, which may indicate that the issue is not with the FTP server, but with something locally. Please post how you create the $ftp object and what FTP commands you issue prior to issuing the get FTP command.

To see what commands Net::FTP sends to the ftp server, you can pass Debug => 1 to Net::FTP->new(). Also consier calling $ftp->get() with 2 arguments, specifying full path to where the file should be stored locally as the second argument. There might be some issues with permissions.

Good luck.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://666138]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2022-08-11 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?