So I am using the following in my script to capture the stdout and stderr output from my subprocess:
output = subprocess.check_output( cmd, stderr=subprocess.STDOUT ) This is working swimmingly, however, my subprocess has a subprocess it itself calls. The subprocess it itself calls has output I would like to capture. However, with my current set up, I only capture the output of the subprocess I create, and do not receive any of the output of it's child process.
Is there any way I can capture the output of any child subprocess spawned by a subprocess that my code is starting?