kill.sh 139 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 #!/bin/bash echo "kill: $1" keys=`(ps -ef |grep $1 |grep -v "grep") | awk '{print $2}'` for key in ${keys[*]} do kill -9 $key done