Operating System - Linux
1832676 Members
2708 Online
110043 Solutions
New Discussion

check all running child processes

 
SOLVED
Go to solution
'chris'
Super Advisor

check all running child processes

hi

howto check all running child processes on linux ?

kind regards
chris
5 REPLIES 5
Sudeesh
Respected Contributor
Solution

Re: check all running child processes

The -l option to ps adds information about which processes started each process (useful when you want to identify child processes):

$ ps -l

F UID PID PPID PRI NI SIZE RSS WCHAN STAT TTY TIME COMMAND

0 501 41 1 15 0 364 472 114d9c S v01 0:00 -bash

0 501 121 41 29 0 64 208 0 R v01 0:00 ps -l


Sudeesh

The most predictable thing in life is its unpredictability
Sudeesh
Respected Contributor

Re: check all running child processes

In the shown o/p, PPID (Parent Process ID) column shows which process started that particular process.

Sudeesh
The most predictable thing in life is its unpredictability
Bejoy C Alias
Respected Contributor

Re: check all running child processes

U can use 'ps -aefH' to get a hierarchiel list of processes .
Be Always Joy ......
Steven E. Protter
Exalted Contributor

Re: check all running child processes

If UNIX95 is set in the environment to 1, then you should be able to use the -H option on ps -efH for example to see child processes.

What about the child processes are you interested in?

SEP
Israel
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
'chris'
Super Advisor

Re: check all running child processes

thanks to ALL

I mean exact to see all zombie processes executed via perl using:
opens, system and backticks.

some perl functions collect their child processes automatically and they must wait to be push manually or to push other processes.

greetings
chris