home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9250 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  747 b 

  1. Path: sparky!uunet!decwrl!bu.edu!jade.tufts.edu!news.tufts.edu!news.tufts.edu!rdorich
  2. From: rdorich@jade.tufts.edu (Rob)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Script for killing mutiple processes?
  5. Message-ID: <RDORICH.92Jul21152432@jade.tufts.edu>
  6. Date: 21 Jul 92 19:22:46 GMT
  7. References: <1992Jul21.135406.10224@ncsu.edu>
  8. Sender: news@news.tufts.edu (USENET News System)
  9. Organization: Tufts University - Medford, MA
  10. Lines: 9
  11. In-Reply-To: odkahn@eos.ncsu.edu's message of 21 Jul 92 13:54:06 GMT
  12.  
  13. In order to kill many jobs running on the background, I ususally use
  14. the following trick:
  15.  
  16. kill -9 `ps -aux | grep myname | grep filename | awk '{print $2}'`
  17.  
  18. You can try that, and it should do the trick,
  19.  
  20. Roberto Dorich
  21. rdorich@jade.tufts.edu
  22.