home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.shell:3699 comp.unix.questions:10544
- Newsgroups: comp.unix.shell,comp.unix.questions,netcom.general
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!decwrl!csus.edu!netcom.com!westes
- From: westes@netcom.com (Will Estes)
- Subject: Need Script To Kill Process Using Substring Of Application Name
- Message-ID: <x6gnwvc.westes@netcom.com>
- Date: Sun, 30 Aug 92 23:07:51 GMT
- Organization: Mail Group
- Lines: 13
-
- Does anyone have a script that they could send to me that will take as
- its input some substring and then kill any process you own that has that
- substring in its application name? So the script would do something
- like:
-
- ps guaxww | grep "some_substring"
-
- then it would exclude the line that contained the grep command, locate
- the PID of the remaining processes, and kill each one. Please post the
- script for others to see if its short enough.
-
- Thanks,
- Will Estes Internet: westes@netcom.com
-