shell 根据 PPID 获取 PID
摘要:
PRID=`ps -ef|grep "program"|grep -v grep|sort -k2|awk '{print $2}'`if [ -z "$PRID" ]then exit 0else ps -ef|awk '{if($3=='"$PRID"'){system("kill -9... 阅读全文
posted @ 2014-06-23 08:10 JonnyLulu 阅读(1333) 评论(0) 推荐(0) 编辑