The stupid question is the question not asked | |
PerlMonks |
Re: how can we tell when a background process is finished?by dave_the_m (Monsignor) |
on Jun 20, 2004 at 09:51 UTC ( [id://368260]=note: print w/replies, xml ) | Need Help?? |
If we run system("program &");, is there a way to know when "program" has finished its execution?No. Instead, create a signal handler for SIGCHLD, then fork(), and do system("program") in the child. Dave.
In Section
Seekers of Perl Wisdom
|
|