mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-11 02:46:28 +00:00
Display stdout + stderr
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user