
27 Jun
2013
27 Jun
'13
8:29 a.m.
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 <cas@taz.net.au> BOFH excuse #64: CPU needs recalibration