On Thu, Jun 27, 2013 at 06:18:55PM +1000, Craig Sanders wrote:
> On Thu, Jun 27, 2013 at 04:34:33PM +1000, Chris Samuel wrote:
> > Is there a way to easily collect all child (and grandchild, etc)
> > processes of a particular process?
> 
> the simplest way I can think of is to use pstree's '-A' option to get

probably a good idea to use pstree's '-l' option for long output
(otherwise output width will be truncated to $COLUMNS or 132 chars max).

$ pstree -l -A -p 13648 | sed -e 's/[^(0-9][0-9]\+//' -e 's/[^0-9]\+/ /g' | 
xargs

craig

-- 
craig sanders <[email protected]>

BOFH excuse #64:

CPU needs recalibration
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to