What does $file and $rename contain? http://danconia.org
michael kramer wrote:
For some reason when I use NET:FTP's get. I will get an error of "Bad file descriptor". What does this mean. Here is my code. use Net::FTP; $ftp = Net::FTP ->new("$ip_address", Timeout => 200, debug => 1, ftp_passive => 1) or die "Can't connect: $!n"; $ftp->login($username, $password) or die "Still couldn't authenticate.\n"; $ftp->binary or die "could not set to binary. $!\n"; $ftp->cwd("$pin_folder") or die "Couldn't change to dir $pin_folder: $!\n"; print "Step 4: Start FTP.\n"; $ftp->get("$file", "$rename") or $status = "not found: $!"; print "$status\n"; $ftp->quit(); Michael Kramer
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]