What exactly does subprocess do to capture the output of the of the thing being run?
- Is it using some OS hook to direct the output into a shared ram space?
- Does it direct the process to write to a file on disk that it then reads? Where is the file?
- Network Socket?
- Does it do something else?
proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
Windows 10
Python 3.7