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

Mohan

-----Original Message-----
From: ilugc-admin@xxxxxxxxxxxxxxxxxx
[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


Hello,

  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
to 
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 
coding......

Look at the LWP::simple module's "get" function. You will need to
understand 
the HTTProtocol to proceed any further.

If you are a newbie, may I reccomend, the excellent "Learning Perl" by
Randal 
Schwartz (aka Llama book), along with the "Perl Cookbook". These two
will 
help jumpstart your perl experience :) Good luck.

best regards
BGa
-- 
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.
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc


Other related posts: