my $COMMAND = "wget -q -O $FILENAME $URL"; print `$COMMAND`;
--->
open my $sh, "-|", "wget", "-q", "-O", $FILENAME, $URL; print <$sh>; close $sh;
is much safer.
use LWP::Simple; is_success (getprint ($URL)) or warn "Fetch failed";
In reply to Re: wget not working from perl
by Tux
in thread wget not working from perl
by harangzsolt33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |