Return to BSD News archive
Xref: sserve comp.unix.bsd:14902 comp.unix.programmer:20131 comp.unix.questions:55112 comp.unix.shell:17786
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!zip.eecs.umich.edu!panix!not-for-mail
From: davidc@panix.com (David B. Chorlian)
Newsgroups: comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell
Subject: Re: <Q> Is there a script for ...?
Date: 16 Sep 1994 07:55:15 -0400
Organization: PANIX Public Access Internet and Unix, NYC
Lines: 26
Message-ID: <35c133$s9g@panix.com>
References: <Pine.3.89.9409150511.A14429-0100000@worf.uwsp.edu> <35b6df$sfo@pluto.neosoft.com>
NNTP-Posting-Host: panix.com
In <35b6df$sfo@pluto.neosoft.com> smace@pluto.neosoft.com (Scott Mace) writes:
>In article <Pine.3.89.9409150511.A14429-0100000@worf.uwsp.edu>,
>Peter Zuge <pzuge@worf.uwsp.edu> wrote:
>>
>> 2) A script that will make it easy to kill numerous jobs.
>> ( I sometimes make some jim-dandy mistakes )
>> Coping four or five PIDs down correctly on the command line is
>> almost more than my typing skills can take.;-)
>kill -9 `ps -ax |grep "name of process" |awk '{print $1}'` would do it
>though be very careful with this if you are root....
Don't use -9, as well-written programs will clean up after themselves
after receiving signal 15, which is the default for kill.
>--
>Scott Mace -- NeoSoft Operations (unix systems) (713)-685-7023
>smace@pluto.neosoft.com
>smace@neosoft.com (713)-684-5969 (Network Operations Center)
--
David B. Chorlian
Neurodynamics Lab SUNY/HSCB
chorlian@sp1p.neurodyn.hscbklyn.edu
davidc@panix.com