Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00ec01c3a6c5$9024e110$2e03090a@uk.circle.com> From: "Vince Hoffman" To: "Lapo Luchini" , "Mailing List: CygWin" References: <3FAB6E96 DOT 9020609 AT lapo DOT it> Subject: Re: a try at killall Date: Sun, 9 Nov 2003 13:29:51 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal x-mimeole: Produced By Microsoft MimeOLE V5.50.4927.1200 > 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 AT lapo DOT 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/