Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- CNT=$#
- if [ $CNT = 1 ] ; then
- ps -ef | grep $1 | grep -v grep | grep -v killsvr | grep -v stop | grep -v tail | awk '{ print $2 }' |\
- while read PID
- do
- echo kill -9 $PID
- kill -9 $PID
- done
- else
- echo "[Usage] : kill.sh {process_name}"
- fi
Add Comment
Please, Sign In to add comment