Re: How to get the pid of all children, grand children..../... of a process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, 30 May 2006, Gopala Krishna wrote:

I knew a process ID which creates a pocess, which inturn creates a process,
which in turn creates another process (like this down the line for about 10
process).  Now I want to see what are all the process created down th line
from the pid of the first process.  Is there any way/scheme to find it out.

There's a command called pstree which displays all processes as a tree. pstree <pid> displays from the specified pid. But perhaps you wanted to do this within a program instead of from a user terminal?

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux