Hi Rob,

On Tue, Nov 11, 2008 at 8:14 AM, Rob Coops <[EMAIL PROTECTED]> wrote:
> I am not 100% certain but I would say because in the first instance $WGET
> $file does not result in anything, the printed line is not printed by your
> program but by the wget command.
>
> Try modifying your script to the follwoing:
>        $result = `$WGET $file`;
>        print "Result = $result\n";

You're correct.

That now outputs

  2008-11-11 08:16:55 (550 KB/s) - `test.zip' saved [1517245/1517245]
  Result =

How *can* I correctly capture that WGET output into a variable that
can be then tested?

--JC

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to