here is a start for you

http://www.askdavetaylor.com/ how_do_i_find_all_child_processes_in_unix.html


On May 12, 2006, at 8:17 AM, Charles Yeomans wrote:


On May 12, 2006, at 6:01 AM, Theodore H. Smith wrote:

How do I kill a command run from the shell tool? If I just kill the shell's PID, that doesn't seem to be the same PID as the PID of the command that I'm running from the shell, so the command just runs to completion.

Right. When you issue a command in a shell, you're starting a new process with its own PID.

Is there some unix command to get the PID of the command that you just run?


Probably. top gives you a list of all processes. I expect that you could do something like get the PID of the shell process, then get the PIDs of its child processes.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to