Hi Michael

I suggest you find out which call is producing your error; that will help
you, and help us to help you. Do it either by running under the debugger or
by adding print statements. If you're doing the latter it's best to enable
autoflush with

    $| = 1;

Cheers,

Rob


"Michael Kramer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> 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]

Reply via email to