This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Offer for killall-script
- From: "Chris January" <chris at atomice dot net>
- To: <cygwin at cygwin dot com>
- Date: Sat, 20 Apr 2002 01:27:55 +0100
- Subject: Re: Offer for killall-script
- References: <002201c1e7f6$cb2c8c70$651c440a@BRAMSCHE>
> In the cygwin-apps I have seen some messages
> http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a
killall
> util, which was going to be part of the cygutils packages but was waiting
> because of licensing problems.
>
> For killall I'm using a good working script for about a half year. Perhaps
> anyone like this to integrate in the cygutils package. This script allows
> killing more than one task, because it does a grep with the first param.
>
> syntax: killall <taskname> | <tasknamepart>
>
>
> $ cat /bin/killall
> ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }'
See Randal's "Usesless Use of kill -9" posts...
http://groups.google.com/groups?q=insubject:useless+insubject:use+insubject:
kill&hl=en&selm=8cpw0y2gb2.fsf_-_%40gadget.cscaper.com&rnum=1
i.e. the signal sent should be configurable :-)
Regards
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/