Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
exec function does not return command promptby casman46 (Initiate) |
on Aug 15, 2014 at 18:33 UTC ( [id://1097603]=perlquestion: print w/replies, xml ) | Need Help?? |
casman46 has asked for the wisdom of the Perl Monks concerning the following question: I am experimenting with using the fork and exec functions to spawn a child process and execute a different script. My ultimate goal is to spawn multiple child processes from the parent without waiting for any of the children to complete. My first attempt is to merely spawn a single child. The parent code is as follows:
The child code is as follows:
When I execute the parent script I receive the following output:
As you can see the command prompt does not appear at the conclusion of the child script. I must enter a Ctrl-C in order to get it back. What am I doing wrong?
Back to
Seekers of Perl Wisdom
|
|