运行脚本

master
pan 4 years ago
parent 71d5e2f0c0
commit a8b7d03caa
  1. 2
      run.sh

@ -12,7 +12,7 @@ function run(){
if [ -e *.log ]
then
pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'`
kill -9 pid
kill -9 $pid
if [ $? -eq 0 ]
then
echo 'kill $pid success'

Loading…
Cancel
Save