Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -ne 1 ];then
- echo "参数错误!"
- exit -1
- fi
- pids=`ps -ef | grep $1 | grep -v $0 | awk '{print $2}'`
- for pidd in $pids
- do
- kill -9 $pidd
- done
RAW Paste Data