Blame view

kill.sh 139 Bytes
chunhua.zhang authored
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