Re: Killing a process tree?
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Mon, 06 Mar 2006 21:56:28 -0600
On 07 Mar 2006 03:23:17 GMT, x0054 wrote:
Bit Twister <BitTwister@xxxxxxxxxxxxxxxx> wrote in
Well, you could use ps to get process and parent process pid,
match subprocess to parent process, and kill in reverse order.
Right... I was hoping there would be an easier way. Isn't there a program
that does that :(
Not that I am aware of without using
--------- standard search tip follows ---------------------
Please bookmark the following, very large,
Frequently Asked Questions (faq) Search engine:
http://groups.google.com/advanced_group_search
key word(s) in the first box
*linux* in Newsgroup box. You need to use the two
asterisks around linux, pick English
If you want/need more control over the first box search,
http://www.google.com/help/refinesearch.html
--------- end of standard search tip --------------------------
to see if someone provided one.
You would think a ps piped into sort would give the parent/subprocess
tree you would travel in a loop. Output processes to kill into a file
for reverse sorting by subprocess and start killing the new sort results.
This assumes, process ids have not rolled over. :)
Once you get it working, you could post it with something like
Subject: Killing a process tree (SOLUTION)
For someone to find with a search engine. :)
.
- Follow-Ups:
- Re: Killing a process tree? - 1 attachment
- From: x0054
- Re: Killing a process tree? - 1 attachment
- References:
- Killing a process tree?
- From: x0054
- Re: Killing a process tree?
- From: Bit Twister
- Re: Killing a process tree?
- From: x0054
- Killing a process tree?
- Prev by Date: Re: Killing a process tree?
- Next by Date: Re: Missing some man pages
- Previous by thread: Re: Killing a process tree?
- Next by thread: Re: Killing a process tree? - 1 attachment
- Index(es):
Relevant Pages
|