Avatar of andieje
andieje asked on

can't use binary transfer for ftp

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
Linux Distributions

Avatar of undefined
Last Comment
andieje

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Pieter Jordaan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
andieje

i think it was a network problem as all is well now
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes