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
{filelink=13113}

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.";

Users who found this page were searching for:

  • how to parse xml file from ftp server using java
  • perl download ans save file from server
  • how to get last modified date of a file in java from ftp server
  • perl ftp socket programming
  • delete all files from ftp server using perl
  • ftp invalid username and password perl
  • download files and directories from ftp server using java
  • download files from ftp server using java
  • perl+ftp+download+file
  • read file from ftp server java

No comments yet.

Leave a Comment

Switch to our mobile site