in reply to download using wget command

Maybe your problem is that you are using backticks to execute wget. You need only system or backticks. If you need to save something in a different directory you should use the -P option of wget:

system 'wget -P /usr/tmp http://192.168.0.1/abc'

If you want to use only Perl, then look at LWP::Simple; a simple example:

use LWP::Simple; mirror('http://192.168.0.1/abc', '/usr/tmp/abc');

Ciao, Valerio

Replies are listed 'Best First'.
Re: Re: download using wget command
by kumar (Initiate) on Feb 19, 2003 at 18:12 UTC
    valdez, I tried system 'wget -P /usr/tmp http://192.168.0.1/abc' command. But it's not working properly. I would like to download all files under abc folder to tmp folder. If i use system 'wget -P /usr/tmp http://192.168.0.1' then index.html is downloaded to tmp folder. Is it happend due to permission problem etc? Anyway thanks for your help.

      It's not a permissions problem, you didn't ask it to download any files, so it didn't. And this still isn't a perl question.