note
pileofrogs
<p>Your parent process will know the PID of each child process, so you can <c>kill 0, $pid</c> to see if it's running. Not sure what the performance implications are.</p>
<p>Since you were mentioning ps & grep, I thought I'd mention this simple alternative.</p>
<p>If all you want is to know if children are alive or dead, you might want to look into $SIG{CHLD} which tells you when kids die. That's in [doc://perlipc] too.</p>
<p>--Pileofrogs</p>
874956
874970