I'm trying to redirect the output of a python script to a file. I have run:
C:\>python c:\python_script.py > a.txt 2>&1
Found here but output is only written once the process completes or is killed. Is there a way to have the redirection write to file as output is written to stdout & stderr?