Re: killing a large lists of pids
- From: Benoit Lefebvre <benoit.lefebvre@xxxxxxxxx>
- Date: Thu, 29 Nov 2007 06:41:21 -0800 (PST)
On Nov 29, 8:54 am, K-mart Cashier <cdal...@xxxxxxxxx> wrote:
Say I have the following list of pids...
8, 2, 5, 4, 3, 9, 7, 11
I've seen some code where people would sort the pids before killing
them. What is the possible advantage of this? If you already have the
list of pids, couldn't you just traverse the list, killing each one
along the way?
Chad
for pid in "8 2 5 4 3 9 7 11"
do
kill $pid
done
.
- Follow-Ups:
- Re: killing a large lists of pids
- From: Barry Margolin
- Re: killing a large lists of pids
- From: shakahshakah@xxxxxxxxx
- Re: killing a large lists of pids
- From: K-mart Cashier
- Re: killing a large lists of pids
- References:
- killing a large lists of pids
- From: K-mart Cashier
- killing a large lists of pids
- Prev by Date: Re: c printf/variables content visible in compiled binary. How to hide that ?
- Next by Date: Re: killing a large lists of pids
- Previous by thread: killing a large lists of pids
- Next by thread: Re: killing a large lists of pids
- Index(es):
Relevant Pages
|
|