This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pkill script


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]