We help IT Professionals succeed at work.
Get Started

can't use binary transfer for ftp

andieje
andieje asked
on
431 Views
Last Modified: 2013-11-15
Hi

I am using Ubuntu Linux on a virtual machine connected to windows on a home pc.

I am running a perl program which is giving me this message: error cannot use binary transfer. The error comes from the line highlighted below
my $ftp;
      $ftp = Net::FTP->new( "$dbsnp_ftp_site", Debug => 0, Passive => 1 )
        or die "Cannot connect to $dbsnp_ftp_site : $@";
      $ftp->login( "anonymous", "$email_address" )
        or die "Cannot log in ", $ftp->message;
      print STDOUT
          "Successfull anonymous login into $dbsnp_ftp_site, password = $email_address\n";

      $ftp->pasv() or die "\nERROR: cannot use passive mode: ", $ftp->message;
      $ftp->binary()
        or die "\nERROR: cannot use binary transfer: ", $ftp->message; <=======!!!
      my $dir = $opt{ftp_dir}->{SCHEMA}->{$type};
      $ftp->cwd($dir)
        or die "\nERROR: cannot enter directory $dir: ", $ftp->message;


Do you have any idea why this would fail? I've had problems doing ftp before I'm sure because i couldn't go into passive mode i think

many thanks
Comment
Watch Question
Senior Systems Administrator - Web hosting and Network Security.
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE