[Ilugc] Perl Help
- From: smohan@xxxxxxxx (S Mohan)
- Date: Tue, 6 Aug 2002 16:41:04 +0530
Unless this access is required from a browser interface, why don't you
try wget directly using shell script? Wget <URL> will extract the file
to current directory. Wget -r will do a recursive extraction.
[mailto:ilugc-admin@xxxxxxxxxxxxxxxxxx] On Behalf Of BGanesh
Sent: 07 August, 2002 1:11 AM
To: Imthiaz Rafiq; LUG Chennai
Subject: Re: [Ilugc] Perl Help
I want a perl script that will open a remote file from some other
server like http://www.something.com/somefile.zip and store the file
onto my server being http://www.myserver.com/somefile.zip
Your server's externally visible name is irrelavant, all you need access
is the directory that the http daemon will serve files from.
Please tell me a method or any example for the same. I am new to perl
Look at the LWP::simple module's "get" function. You will need to
the HTTProtocol to proceed any further.
If you are a newbie, may I reccomend, the excellent "Learning Perl" by
Schwartz (aka Llama book), along with the "Perl Cookbook". These two
help jumpstart your perl experience :) Good luck.
We will find a way, or we will make one - Hannibal
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with "unsubscribe"
in the subject or body of the message.
Other related posts: