This is the mail archive of the
mailing list for the Cygwin project.
Re: a try at killall
Vince Hoffman wrote:
And I already had it installed, too!
Not complete, but usually works for me 0=)Any reason not to just use pkill ? (from procps package)
(I found it after writing a similar script for solaris. )
$ cat /usr/local/bin/killall
ps -s | sed -re "/$1$/s/^ +([0-9]+).*$/\1/;t fine;d;:fine" | xargs kill
$2 $3 $4
Lapo 'Raist' Luchini
email@example.com (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