Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Perl: download file from FTP server

Your ads will be inserted here by

Easy AdSense.

Please go to the plugin admin page to paste your ad code.

Perl: download file from  FTP server

use Net::FTP;
$username = "test_username";
$password = "mypassword";
$remotefile = "index.html";                 # File to download
$ftp = Net::FTP->new("ftp.myFTPServer.com", Timeout => 60)
        or die "Could not connect to FTP server.";
$ftp->login($username, $password)
        or die "invalid username or password:$_!";
$ftp->cwd('/httdoc/site');                  # set working directory
# Save the file in the current directory
$ftp->get($remotefile, $remotefile)
        or die "Can not get file.";

There are no posts related to Perl: download file from FTP server .

Users who found this page were searching for:

  • Python: How To Download From FTP site
  • getting an xml file from remote ftp server and parsing using java
  • how to get last modified date of a file in java from ftp server
  • java ftp download text file
  • perl download file from ftp
  • transfer text file from a ftp connection to sql server
  • perl opening threads to download a list of files
  • perl ftp get all files from remote server
  • sun.net.ftp.ftpclient getfile
  • copy file on ftp before downloading using perl

No comments yet.

Leave a Comment

Switch to our mobile site