delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/09/13:06:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <3FAE8224.4060006@lapo.it>
Date: Sun, 09 Nov 2003 19:06:28 +0100
From: Lapo Luchini <lapo AT lapo DOT it>
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 <vince DOT hoffman AT uk DOT circle DOT com>
CC: Mailing List: CygWin <cygwin AT cygwin DOT com>
Subject: Re: a try at killall
References: <3FAB6E96 DOT 9020609 AT lapo DOT it> <00ec01c3a6c5$9024e110$2e03090a AT uk DOT circle DOT com>
In-Reply-To: <00ec01c3a6c5$9024e110$2e03090a@uk.circle.com>
X-Enigmail-Version: 0.76.7.0
X-Enigmail-Supports: pgp-inline, pgp-mime

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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019