From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3592 invoked by alias); 9 Nov 2003 18:06:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3585 invoked from network); 9 Nov 2003 18:06:30 -0000 Received: from unknown (HELO mail.m4d.sm) (194.183.89.8) by sources.redhat.com with SMTP; 9 Nov 2003 18:06:30 -0000 Received: (qmail 44780 invoked from network); 9 Nov 2003 18:06:29 -0000 Received: from unknown (HELO lapo.it) (81.74.40.71) by 0 with SMTP; 9 Nov 2003 18:06:29 -0000 Message-ID: <3FAE8224.4060006@lapo.it> Date: Sun, 09 Nov 2003 18:06:00 -0000 From: Lapo Luchini User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: it, en, fr, es MIME-Version: 1.0 To: Vince Hoffman CC: Mailing List: CygWin Subject: Re: a try at killall References: <3FAB6E96.9020609@lapo.it> <00ec01c3a6c5$9024e110$2e03090a@uk.circle.com> In-Reply-To: <00ec01c3a6c5$9024e110$2e03090a@uk.circle.com> X-Enigmail-Version: 0.76.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-11/txt/msg00293.txt.bz2 Vince Hoffman wrote: > > >>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. ) > > And I already had it installed, too! -_-!!!!!!!!!!! -- 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/