|
@@ -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)
|