Explorar el Código

Merge branch 'master' of http://121.40.40.223:3000/wiipu/boniu

wanggangtao hace 5 años
padre
commit
d13078e0ed
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 1 1
      commands/git/update.php
  2. 4 4
      data/get_stock_all_code_name_list.sh

+ 1 - 1
commands/git/update.php

@@ -9,7 +9,7 @@
 
 
 
-$command = "cd /home/wwwroot/default/boniu;git pull;chmod -R 755 data";
+$command = "cd /home/wwwroot/default/boniu;git pull;sleep 3s;chmod -R 755 data";
 
 
 exec($command,$data);

+ 4 - 4
data/get_stock_all_code_name_list.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 cd /home/wwwroot/default/boniu/data
-#nohup php /home/wwwroot/default/boniu/data/get_stock_all_code_name_by_sina.php?exchange=sh\&sector=10\&start=600000 &
-sleep 3600
-rm nohup.out
-sleep 3600
+nohup php /home/wwwroot/default/boniu/data/get_stock_all_code_name_by_sina.php?exchange=sh\&sector=10\&start=600000 &
+sleep 1s
+rm -f  nohup.out
+sleep 2s