in reply to Re: Re: Re: trouble while ftping through Perl Script
in thread trouble while ftping through Perl Script
use Net::FTP; my $ftp = Net::FTP->new("ftp.server.com", Debug => 0) or die "Cannot c +onnect to some.host.name: $@"; my $username = 'username'; my $password = 'pa\ss\wor$d$'; $ftp->login($username,$password) or die "Cannot login ", $ftp->message +; $ftp->cwd("/files") or die "Cannot change working directory ", $ftp->m +essage; $ftp->ls("/files") or die "get failed ", $ftp->message; $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: trouble while ftping through Perl Script
by gellyfish (Monsignor) on Apr 29, 2004 at 12:34 UTC | |
by shilpam (Sexton) on Apr 29, 2004 at 12:35 UTC |