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]

 



ps auxf

f is for the foest option

On 5/30/06, Ricard Wanderlof <ricard.wanderlof@xxxxxxxx> wrote:

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?

--
wbr, Alex

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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