esolm has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # file name here use warnings; use strict; use Net::FTP; use File::Copy "cp"; # ****************************************************** # SECTION 1 CHECK TO SEE IF THERE IS A NEW FILE ON JANUS # ****************************************************** # log into xxxxx with perl chdir "d:/cds_data/latest_download/"; my $ftp = Net::FTP->new("xxxxxxxxxx") or die "Couldn't connect: $@\n"; $ftp->login("xxxxxx", 'xxxxxxxx'); $ftp->cwd("/pushus/download"); $ftp->binary; $ftp->pasv; $ftp->get("download.zip"); $ftp->close; print "Th Th Tha That's All Folks!!!!!", "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP and Zip files
by sachmet (Scribe) on Mar 19, 2001 at 12:11 UTC | |
|
Re: Net::FTP and Zip files
by Anonymous Monk on Mar 19, 2001 at 12:13 UTC |