Search code examples
unixprocesssolarisps

Find processes by parent PID on Solaris


I'd like to find all processes running on Unix (Solaris) with a certain PPID. Is this possible using the ps command?


Solution

  • Alternatively, you could always perform a grep on the output of the process list;

    ps -ef | grep XXXX, where XXXX is your PPID.

    This will at least give you a list of processes with that number, and knowing that PPID should be the third column, lead you to your specified Parent Process ID.