parent
da279228a4
commit
24933dc321
@ -1,13 +1,13 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
#杀死进程 |
#杀死进程 |
||||||
if [ -e *.log ] |
if [ -e pid ] |
||||||
then |
then |
||||||
pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'` |
pid=`echo pid` |
||||||
kill -9 $pid |
kill -9 $pid |
||||||
if [ $? -eq 0 ] |
if [ $? -eq 0 ] |
||||||
then |
then |
||||||
echo "kill $pid success" |
echo "kill $pid success" |
||||||
rm -f *.log |
rm -f pid |
||||||
fi |
fi |
||||||
fi |
fi |
||||||
./run.sh |
./run.sh |
||||||
|
Loading…
Reference in new issue