1 #bash
2 read p;
3 mytest=`ps -e | grep -w $p | awk '{print $4}'|uniq`
4 echo $mytest
5 echo $p
6 if [ "${mytest}" = "$p" ]; then
7 echo "have started"
8 exit
9 else
10 echo "not restart"
11
12 fi

被折叠的 条评论
为什么被折叠?



