SPUG: File Transfer

Darren/Torin/Who Ever... torin at daft.com
Thu Oct 5 14:01:13 CDT 2000


Andre McDowall, in an immanent manifestation of deity, 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).

You could look at the code in CPAN.pm, distributed with Perl to see how
it does it.  Generally, it uses Net::FTP or LWP to transfer the file and
then Compress::Zlib to uncompress it.  From there, it then pulls out
what it needs with Archive::Tar.

I've also heard rumors of a module implementing the rsync protocol.
CPAN says to contact Lee Eakin <leakin at dfw.nostrom.com> if you're
interested in that...

Darren
-- 
<torin at daft.com><http://www.daft.com/~torin/> <torin at debian.org><perl at slut.org>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-206-ELF-LIPZ
@		     Make a little hot-tub in your soul.		      @

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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