in reply to ...That's how perlmonks works [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: ...That's how perlmonks works [Re: Re: Re: trouble while ftping through Perl Script]
by Plankton (Vicar) on Apr 30, 2004 at 05:23 UTC | |
by shilpam (Sexton) on Apr 30, 2004 at 05:40 UTC | |
by Plankton (Vicar) on May 01, 2004 at 00:28 UTC | |
by shilpam (Sexton) on May 03, 2004 at 04:34 UTC |