SPUG: File Transfer

Joel Grow largest at largest.org
Thu Oct 5 13:42:24 CDT 2000


On Thu, 5 Oct 2000, ANDRE MCDOWALL wrote:

> Anyone know of a Perl or CGI script (or any script for that matter)
> that can transfer files from one server to another? And if possible,
> unzip a zipped file? The first part is more important (the transfer of
> files).


How about Net::FTP?  This is from the perldoc:

           use Net::FTP;

           $ftp = Net::FTP->new("some.host.name");
           $ftp->login("anonymous","me at here.there");
           $ftp->cwd("/pub");
           $ftp->get("that.file");
           $ftp->quit;


I don't know how comfortable you are with hardcoding passwords in a
script.

Joel


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list