PRID=`ps -ef|grep "program"|grep -v grep|sort -k2|awk '{print $2}'` if [ -z "$PRID" ] then exit 0 else ps -ef|awk '{if($3=='"$PRID"'){system("kill -9 "$2)} }' fi
posted on 2014-06-23 08:10 JonnyLulu 阅读(1333) 评论(0) 编辑 收藏 举报