Closed Thread Icon

Preserved Topic: Retrieving remote files in Perl (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=21078" title="Pages that link to Preserved Topic: Retrieving remote files in Perl (Page 1 of 1)" rel="nofollow" >Preserved Topic: Retrieving remote files in Perl <span class="small">(Page 1 of 1)</span>\

 
bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-16-2001 01:21

Howdy,

Anyone got any suggested methods for retrieving remote files from machines in
Perl?

I need to grab a txt file off of one machine from another. I can use the FTP module but I'd prefer another way. The text file will be served so I was considering an HTTP Get method, but I'm not sure how that's done.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 10-16-2001 01:28

Use LWP perl module(s) to fetch file through HTTP: http://search.cpan.org/search?dist=libwww-perl


hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 10-16-2001 19:56

You said you don't want to use the FTP module. Why not? I have used it before and have had no problems with it.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-16-2001 20:27

It has to do with the way our servers are set up.

Right now we can only ftp to the development box and then scp files to the production servers. Our production teams maintain the content on the live instance. However I can't directly ftp into that box.

Otherwise I would jump on the FTP solution in a heartbeat. However it's just not workable in this case.





:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu