home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!apple!news.oc.com!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Script for killing mutiple processes?
- Message-ID: <1992Jul23.042717.25661@news.eng.convex.com>
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Nntp-Posting-Host: pixel.convex.com
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- References: <1992Jul21.135406.10224@ncsu.edu> <RDORICH.92Jul21152432@jade.tufts.edu>
- Date: Thu, 23 Jul 1992 04:27:17 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 18
-
- From the keyboard of rdorich@jade.tufts.edu (Rob):
- :In order to kill many jobs running on the background, I ususally use
- :the following trick:
- :
- :kill -9 `ps -aux | grep myname | grep filename | awk '{print $2}'`
-
- Come now. You've got an awk going. Just what do you need a grep
- for, let alone two of them?
-
- You're also not being very careful about suicide.
-
- --tom
-
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
- "A foolish consistency is the hobgoblin of little minds, adored by
- little statesmen and philosophers and divines. With consistency a
- great soul has simply nothing to do." --Ralph Waldo Emerson
-