Is it possible to get the following check_call
procedure:
logPath="log.txt"
with open(logPath,"w") as log:
subprocess.check_call(command, stdout = log, stderr=subprocess.STDOUT )
to output the stdout
and stderr
to a file continously?
On my machine, the output is written to the file only after the subprocess.check_call finished
.
To achieve this, perhaps we could modify the buffer length of the log
filestream?