diff --git a/run.sh b/run.sh index deff925..5c183a2 100644 --- a/run.sh +++ b/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'