Here is my struggle:
I am reusing code where I make a call to subprocess.Popen to launch an external program (and extract logs and stuff...)
The problem for me is that this external program generates lots of output in the console, irrelevant for me. So I tried to figure how to redirect stdout (and probably stderr too) to "I don't know where, but not in my console please"...
So far, I read lots of answers, using PIPE or an output file, or check_output...
Here is my current call line:
subprocess.Popen(pathToBat + args,cwd=aPathRequiredForBat)
If I leave it like this, everything is fine but my console is flooded... If I add anything else (like stdout=subprocess.PIPE), I am getting errors like "File specified was not found".
Thanks in advance for anyone willing to help... Not critical point in my application, but would be really better to get readable, un-flooded output!
Manu