in reply to How to exec in a separate thread?

If you are trying to get input from the standard output of the script and system security is good (NOT one of my best topics) then why not use backticks, as in...
$foo = 'usr/bin/bar.pl';

If anyone has any good reasons why not, please reply or /msg me.

Muchas gracias, Elgon

UPDATE: Thanks to myocom, that should read...

$foo = `/usr/bin/bar.pl`;

Goddamn azerty keyboards!

Replies are listed 'Best First'.
Re: Re: How to exec in a separate thread?
by myocom (Deacon) on Jan 17, 2001 at 00:05 UTC

    Just two problems with your code: $foo = 'usr/bin/bar.pl';

    One, those aren't backticks. Two, you probably want a leading / in your path, there...

    $foo = `/usr/bin/bar.pl`;