Display stdout + stderr

This commit is contained in:
Zach Borboa
2022-09-23 15:03:23 -07:00
parent 9458b45631
commit b8ae0dcebe
+2
View File
@@ -131,6 +131,8 @@ def main():
print('running command: {}'.format(command))
proc = subprocess.Popen(command, shell=False, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
stdout, stderr = proc.communicate()
print('stdout: {}'.format(stdout))
print('stderr: {}'.format(stderr))
result = json.loads(stdout)
pprint.pprint(result)