
28 Jun
2013
28 Jun
'13
2:59 a.m.
On 28/06/13 11:23, Trent W. Buck wrote:
HTFU and write it. It's just simple recursion.
Actually thanks to Craig no recursion is necessary, I had to modify my version as Craigs seemed to have issues with processes that were numbers, but what I ended up with was: pstree -l -A -p $(pidof pbs_mom) | sed -e 's/(/\n/g' | sed -e 's/).*//' | egrep '^[1-9]+' | fgrep -v $(pidof pbs_mom) So that will find you all the children (processes and threads) of pbs_mom excluding pbs_mom itself. Thanks all! Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC