Net::FTP 
Author Message
 Net::FTP

I'm trying to use the following to ftp a file from a host to my PC with
ActivePerl

my $ftp = Net::FTP->new($host) or die "Net::FTP failed: $!";
$ftp->login($user, $pass) or die "Not logged in: $!";
$ftp->ascii;
$ftp->cwd('/root/') or die "No change of directory: $!";

$ftp->quit;



for ( my $n = 0; $n < $libdir ; $n++ ) {
    print "$libdir[$n]\n";

Quote:
}


I would like to list the contents of the library. But I don't get any
list.

Then I use PerlDe{*filter*} and run the script and in that case I get a
listing from the host.
What is wrong??

/Jonny



Sat, 15 Feb 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. NET::SSH, NET::FTP, NET::POP3 (how to detect)

2. NET::FTP How to FTP all files of a current filetype

3. Net::FTP $ftp->pwd() undef??

4. libnet/Net::FTP-- accessing FTP within an intranet...

5. ftp.pl vs NET:FTP

6. Net::Ftp and the use of the FTP user command

7. How to use Net::FTP - FTP Client class through a Firewall

8. How to use Net::FTP - FTP Client class

9. Net::FTP - configure ftp proxy

10. Net::FTP - configure my ftp proxy

11. Net::FTP examples ftp->quit hangs

12. Net::FTP ftp->ls() stopped working

 

 
Powered by phpBB® Forum Software