freemt
commited on
Commit
·
d562426
1
Parent(s):
676bda1
Update app
Browse files
app.py
CHANGED
@@ -22,11 +22,11 @@ def process(command):
|
|
22 |
is_command = command.strip().splitlines().__len__() < 2 and len(command.strip()) < 100
|
23 |
|
24 |
if is_command:
|
25 |
-
proc = sp.Popen(
|
26 |
-
split(command), encoding="utf8", stdout=-1, stderr=-1
|
27 |
-
) # sp.PIPE: -1
|
28 |
try:
|
29 |
# out = sp.check_output(split(command), encoding="utf8", stderr=STDOUT)
|
|
|
|
|
|
|
30 |
out, err = proc.communicate()
|
31 |
except Exception as e:
|
32 |
out, err = "", str(e)
|
|
|
22 |
is_command = command.strip().splitlines().__len__() < 2 and len(command.strip()) < 100
|
23 |
|
24 |
if is_command:
|
|
|
|
|
|
|
25 |
try:
|
26 |
# out = sp.check_output(split(command), encoding="utf8", stderr=STDOUT)
|
27 |
+
proc = sp.Popen(
|
28 |
+
split(command), encoding="utf8", stdout=-1, stderr=-1
|
29 |
+
) # sp.PIPE: -1
|
30 |
out, err = proc.communicate()
|
31 |
except Exception as e:
|
32 |
out, err = "", str(e)
|