chanjunkai 5 gadi atpakaļ
vecāks
revīzija
3320009f7f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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)