This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
a try at killall
- From: Lapo Luchini <lapo at lapo dot it>
- To: Mailing List: CygWin <cygwin at cygwin dot com>
- Date: Fri, 07 Nov 2003 11:06:14 +0100
- Subject: a try at killall
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
--
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/