When using subprocess, cli output is assigned to stderr
rmdort opened this issue · 0 comments
rmdort commented
I am using subprocess to call floyd info job_id
from subprocess import Popen, PIPE
process = Popen(['floyd', 'info', 'job_id'], stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate()
print (stdout) => ''
print (stderr) => table
The output of this command is assigned to stderr
. And stdout
is empty