home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9323 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.5 KB  |  36 lines

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