linux - Given a PPID, how to find all of associated PID? -
it might weird question searched , found many people asking how find ppid given pid. however, i'm interested in finding out pid of given ppid.
the incentive run process check using pidstat , test pidstat, seems pidstat reports meaningful kid process stats , if have driver script , want access each individual processes within driver script, need htop , find out pids individually. when invoked driver script, such bash script.sh, there id associated command , id becames ppid of processes within driver scripts (if understand correctly).
so know how pids of ppid?
thanks!
try doing :
$ ps --ppid <your ppid> -o pid=
linux monitoring status pid
No comments:
Post a Comment