This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: a try at killall
- From: "Vince Hoffman" <vince dot hoffman at uk dot circle dot com>
- To: "Lapo Luchini" <lapo at lapo dot it>, "Mailing List: CygWin" <cygwin at cygwin dot com>
- Date: Sun, 9 Nov 2003 13:29:51 -0000
- Subject: Re: a try at killall
- References: <3FAB6E96.9020609@lapo.it>
> Not complete, but usually works for me 0=)
>
> $ cat /usr/local/bin/killall
> #!/bin/sh
> ps -s | sed -re "/$1$/s/^ +([0-9]+).*$/\1/;t fine;d;:fine" | xargs kill
> $2 $3 $4
>
Any reason not to just use pkill ? (from procps package)
(I found it after writing a similar script for solaris. )
> --
> Lapo 'Raist' Luchini
> lapo@lapo.it (PGP & X.509 keys available)
> http://www.lapo.it (ICQ UIN: 529796)
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/