[kwlug-disc] Parent Processes

John Van Ostrand john at netdirect.ca
Tue Jan 25 13:11:45 EST 2011


----- Original Message -----
> Ah! /proc/<PID>/status and look for 1 under PPid:, when you find all
> the ones that have to do with search.pl and have a 1 for PPid, we're
> all set.

Now that I'm back at a computer this would work too:

ps -e -o "%P %c"  | grep -E "^ +1 " | grep search.pl

Then pipe through sed or cut to get just the PID.

-- 
John Van Ostrand 
CTO, co-CEO 
Net Direct Inc. 
564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6 
Ph: 866-883-1172 x5102 
Fx: 519-883-8533 

Linux Solutions / IBM Hardware 





More information about the kwlug-disc mailing list