in reply to Re: Re: trouble while ftping through Perl Script
in thread trouble while ftping through Perl Script
The problem is that it is not logging in correctly. I would suggest that you use Net::FTP directly whereby you can get the error messages directly:
use strict; use Net::FTP; my $client = Net::FTP->new('ftp.servername.com', Debug => 1) or die "Cannot connect : $@\n"; $client->cwd('/files') or die $client->message(); $client->get('somefile.txt') or die $client->message(); $client->quit()
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: trouble while ftping through Perl Script
by shilpam (Sexton) on Apr 29, 2004 at 12:28 UTC | |
by gellyfish (Monsignor) on Apr 29, 2004 at 12:34 UTC | |
by shilpam (Sexton) on Apr 29, 2004 at 12:35 UTC |