in reply to Re: Transfer Folder Using Net::FTP
in thread Transfer Folder Using Net::FTP
Do u have any idea, how can i distribute tis script, by that way i can transfer a folder taht contains files, instead of a single file transfered...> $ftp_server = "***.***.***.***"; > $login = "roime"; > $password = "roimepuniran"; > $upload_to_dir = "/flow/flowBig"; > $input_file = "/flow/netflow"; > $new_file_name = "lyidia.pl"; > > ================================================================= > > my $ftp; > print "Connect From : ", $addr->peerhost(); > #Display Message > > $ftp = Net::FTP->new($ftp_server, Debug => 1) or warn +"Cannot connect to the ftp host"; > > $ftp->login($login,$password)or die $ftp->message; > $ftp->pwd or die $ftp->message; > $ftp->cwd($upload_to_dir) or die $ftp->me +ssage; > $ftp->binary(); > > $ftp->put($input_file, $new_file_name) or warn "...Not upload..";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Transfer Folder Using Net::FTP
by claree0 (Hermit) on Oct 15, 2004 at 12:54 UTC |