home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3730 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  558 b 

  1. From: rlr@hpuerca.atl.hp.com (Ricky Ralston)
  2. Date: Mon, 31 Aug 1992 14:59:25 GMT
  3. Subject: Re: > Need Script To Kill Process Using Substring Of Application Name
  4. Message-ID: <151660001@hpuerca.atl.hp.com>
  5. Organization: Hewlett-Packard, Atlanta Technology Center
  6. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscdc!scd.hp.com!hplextra!hpcc05!hpuerca!rlr
  7. Newsgroups: comp.unix.shell
  8. References: <1992Aug31.013546.16535@cs.ubc.ca>
  9. Lines: 6
  10.  
  11.  
  12. Maybe this will do -
  13.  
  14. kill -9 `ps -ef -u\`id -ru\` | awk '$8 ~ /'$1'/ || $9 ~ /'$1'/ {print $2}'`
  15.  
  16. rlr@hpuerca.atl.hp.com
  17.