12 lines
222 B
Python
12 lines
222 B
Python
|
import subprocess
|
||
|
|
||
|
def main(buffer, command):
|
||
|
if len(command) == 1:
|
||
|
print("?")
|
||
|
else:
|
||
|
try:
|
||
|
print("[%d]" % subprocess.run(command[1:]).returncode)
|
||
|
except Exception as err:
|
||
|
print("%s" % str(err))
|
||
|
return buffer
|