good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: how to get pid for multiple child process in parent processby thezip (Vicar) |
on Jul 01, 2008 at 00:11 UTC ( [id://694860]=note: print w/replies, xml ) | Need Help?? |
You could always do something like:
This would result in a set of pids for the active shell, one per line. You'll have to investigate to determine the usability of these results. Also, I have only shown the broadest possible result... you'll be able to tweak the arguments to pgrep to fine-tune it. Here's the current output on my system:
I hope this is helpful. Your wish is my commandline.
In Section
Seekers of Perl Wisdom
|
|