This is the mail archive of the
cygwin
mailing list for the Cygwin project.
pkill script
- From: "Tom Van Looy" <assarix at pandora dot be>
- To: cygwin at cygwin dot com
- Date: Wed, 07 May 2008 09:54:26 +0000
- Subject: pkill script
- Reply-to: assarix at pandora dot be
- Sensitivity: Normal
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/