I have a python program which executes subprocess.Popen
, like this;
process = subprocess.Popen(stand_alone_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
print "out: ", out
print "err: ", err
If my stand_alone_command
will run forever, how do I get whatever stand_alone_command
is throwing at STDOUT and STDERR so that I can log it.