mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-28 04:14:51 +02:00
aaPanel 6.6.9
Optimize PHP Manager Optimize file manager move file logic Optimize online editor
This commit is contained in:
@@ -45,6 +45,7 @@ def ExecShell(cmdstring, cwd=None, timeout=None, shell=True):
|
||||
import datetime
|
||||
import subprocess
|
||||
import time
|
||||
subprocess.Popen('echo > ' + logPath, cwd=cwd, stdin=subprocess.PIPE, shell=shell, bufsize=4096)
|
||||
sub = subprocess.Popen(cmdstring+' &> '+logPath, cwd=cwd, stdin=subprocess.PIPE,shell=shell,bufsize=4096)
|
||||
|
||||
while sub.poll() is None:
|
||||
|
||||
Reference in New Issue
Block a user