浏览代码

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

wanggangtao 5 年之前
父节点
当前提交
d13078e0ed
共有 2 个文件被更改,包括 5 次插入5 次删除
  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