Hi guys!
Given a process ID (PID), how do I get the child processes whose parent process is PID? The intent is to programmatically kill a process and all its child processes. If a child process is itself a parent of another process, then the "second generation" child processes should be killed as well. I would like to do this on Solaris using C and any of the scripting langs (SH, AWK, or PERL).
Thanks.
Given a process ID (PID), how do I get the child processes whose parent process is PID? The intent is to programmatically kill a process and all its child processes. If a child process is itself a parent of another process, then the "second generation" child processes should be killed as well. I would like to do this on Solaris using C and any of the scripting langs (SH, AWK, or PERL).
Thanks.