How do I pipe a subprocess call to a text file?
If you want to write the output to a file you can use the stdout-argument of subprocess.call. It takes either None (the default, stdout is inherited from the parent (your script)) subprocess.PIPE (allows you to pipe from one command/process to another) a file object or a file descriptor (what you want, to have the output … Read more