in reply to copy a file from ftp to clients hard drive
use strict; use warnings; use diagnostics; use Net::FTP; my $file = 'npulse-0.53p2.tar.gz'; my $host = 'ftp.ttm.bg'; my $user = 'anonymous'; my $pass = '-anonymous@'; my $dir = 'pub/Linux/admin/'; my $ftp = Net::FTP->new($host, Debug => 1); $ftp->login($user,$pass); $ftp->cwd($dir); $ftp->get($file); $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: copy a file from ftp to clients hard drive
by Doyle (Acolyte) on May 13, 2005 at 17:59 UTC |