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

Re: Managing the fork/execing and reaping of child processes

by RichardK (Parson)
on Jul 16, 2015 at 16:05 UTC ( [id://1135042]=note: print w/replies, xml ) Need Help??


in reply to Managing the fork/execing and reaping of child processes

Are you sure that your exec call worked? It can be tricky, see the docs exec.

You could check if it fails :-

exec ('foo') or die "couldn't exec foo: $!";

Replies are listed 'Best First'.
Re^2: Managing the fork/execing and reaping of child processes
by ibm1620 (Hermit) on Jul 16, 2015 at 16:14 UTC
    I added the ".. or die 'couldnt..'" but it doesn't get invoked. It seems to me that, in this case, exec (unlike fork) would either always work, or never work. The presence of "Hellos" in the output indicates to me that it's working.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-23 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found