chanjunkai 5 лет назад
Родитель
Сommit
3320009f7f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controller/index.py

+ 2 - 2
controller/index.py

@@ -442,8 +442,8 @@ def testRunStream(request):
 
     print('command=>{command}'.format(command=command))
     try:
-        # back = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE). \
-        #     communicate(timeout=10)
+        back = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE). \
+            communicate(timeout=10)
         print("时间:%s"%datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3])
     except Exception as e:
         return repr(e)