wutt_g
Last Updated: February 25, 2016
·
588
· sheerun
Photo on 08.01.2013 at 04.15

List all process' PPIDs

Function:

ppids(){ echo $1; ppid=$(ps -o ppid= $1) && ppids ${ppid// /} || true; }

Usage:

ppids $$ | xargs ps # current process
ppids 42 | xargs ps # other process
Say Thanks
Respond
Filed Under