I am running a Python script on Linux bash. The script prints output from time to time. I want to:
- redirect script output to file
- run it in background
- have ability to
tail -f
the results in the file while the script is running
I want to use tail -f only from time to time to monitor progress in some long process. I don't know why but after I redirect output I see no content in the file while the process is still running. Full content appears in the file after Python script ends.