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