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 From: "Ralf Habacker" To: "cygwin" Subject: Offer for killall-script Date: Sat, 20 Apr 2002 01:06:09 +0200 Message-ID: <002201c1e7f6$cb2c8c70$651c440a@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In the cygwin-apps I have seen some messages http://sources.redhat.com/ml/cygwin-apps/2002-01/msg00340.html about a killall util, which was going to be part of the cygutils packages but was waiting because of licensing problems. For killall I'm using a good working script for about a half year. Perhaps anyone like this to integrate in the cygutils package. This script allows killing more than one task, because it does a grep with the first param. syntax: killall | $ cat /bin/killall ps -ea | grep $1 | gawk '$1 ~ /^[^SI]/ { system("kill -9 " $1); }' Regards Ralf Habacker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/