deprecated has asked for the wisdom of the Perl Monks concerning the following question:
just looking at it, its hurting for a foreach (@pids) { ... } and a split, and so on.for i in `ps -xawu | grep "$*" | grep -v grep | awk '{ print $2 }'`; d +o kill -9 $i ; done ;;
thanks,
dep.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get the data
by Fastolfe (Vicar) on Feb 01, 2001 at 03:32 UTC | |
|
Re: How do I get the data
by turnstep (Parson) on Feb 01, 2001 at 02:06 UTC | |
|
Re: How do I get the data
by runrig (Abbot) on Feb 01, 2001 at 02:28 UTC | |
|
Re: How do I get the data
by deprecated (Priest) on Feb 01, 2001 at 03:18 UTC |