X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Tom Van Looy" To: cygwin AT cygwin DOT com Sensitivity: Normal Message-ID: X-Forwarded-For: [10.10.1.191] Date: Wed, 07 May 2008 09:54:26 +0000 Subject: pkill script Reply-To: assarix AT pandora DOT be MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hi list I first want to thank everyone that helped to develop Cygwin, I really really really like it. Screenshot: http://ctors.net/pub/zsh_cygwin.png :-) Two nice aliases I use for Windows are uptime and pkill: alias uptime="systeminfo | grep -i 'system up time'" pkill is a bash script in my ~/bin folder (I include that folder in my $PATH) $ cat bin/pkill #!/bin/sh # be VERY careful with parameter $1 case $1 in '' ) cat "$0" ;; * ) for pid in $( ps -aW | grep -i $1 | awk '{ print $4 }' ); do tskill $pid /V; done ;; esac Again thanks for the great software, keep up the good work!! Tom Van Looy -- 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/