chanjunkai hace 5 años
padre
commit
3320009f7f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)