pglinx has asked for the wisdom of the Perl Monks concerning the following question:
I have been able to put but can't seem to get Mabey it is not as simple a just reversing the process but I can't seem to find much info on it out there..
#!/usr/local/bin/perl5 require 'ftplib.pl'; $FtpHost = "panix.com"; if (&ftp::open($FtpHost) != 1) { die "can't open $FtpHost\n"; } if (&ftp::cwd(pub) != 2) { die "Can't change directories\n"; } if (&ftp::cwd(gizmo) != 2) { die "Can't change directories\n"; } @dirList = ftp::list(); foreach (@dirList) { print("\t$_\n"); } $file = 'ninpaths.txt'; if (&ftp::get($file) != 1) { die "cannot get $file\n"; } &ftp::close;
20060512 Janitored by Corion: Exchanged PRE for CODE tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ftp get
by nimdokk (Vicar) on May 11, 2006 at 17:53 UTC | |
|
Re: ftp get
by CountOrlok (Friar) on May 11, 2006 at 17:54 UTC | |
by pglinx (Acolyte) on May 11, 2006 at 19:12 UTC | |
by CountOrlok (Friar) on May 11, 2006 at 20:57 UTC | |
|
Re: ftp get
by moklevat (Priest) on May 11, 2006 at 18:26 UTC |