LingxinMeng hace 6 meses
padre
commit
56fb7ac851
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/python2/pjibot_patrol/callback-nohup.sh

+ 2 - 1
src/python2/pjibot_patrol/callback-nohup.sh

@@ -5,4 +5,5 @@ if [ ! -d "./log" ]; then
 else
     echo "Directory './log' already exists."
 fi
-nohup python2 callback-pjibot_patrol.py > log/callback.out 2>&1 &
+rm -rf log/callback-pjibot_patrol.out log/callback-pjibot_patrol.log
+nohup python2 callback-pjibot_patrol.py > log/callback-pjibot_patrol.out 2>&1 &