Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to exec in a separate thread?

by Elgon (Curate)
on Jan 16, 2001 at 17:22 UTC ( [id://52227]=note: print w/replies, xml ) Need Help??


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`;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://52227]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-18 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found