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