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