LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find all child processes (https://www.linuxquestions.org/questions/linux-newbie-8/find-all-child-processes-844784/)

charithmax 11-17-2010 04:40 AM

Find all child processes
 
Hi All,

i want to check all the child processes attached to a specific process.
Say for a example; my process is a java process. then i wanna know what are the processes attached to that java process.

at the moment i use the command # ps aux|grep java ; this gives the details about the currently running java process. so i can kill the whole java process using #kill -9 {pid} ...but there are sub processes attached (i guess child processes) to java process. i wanna view all of them & kill whatever the process i like.not the whole thing.

i'm using Red hat 5 enterprise edition. and currently a weblogic application server is running on that.

please somebody give me a hand to solve this out.


Thanks in advanced.
Max

colucix 11-17-2010 04:47 AM

You can see a process tree using either ps -ejH or ps fax.

charithmax 11-17-2010 05:28 AM

Thanks friend. it really helped me. Thanks 4 the quick response.

Thanks,
Max


All times are GMT -5. The time now is 07:43 AM.