Issue
Version 1 fails to write to my output.txt file:
nohup python test.py &> output.txt &
But Version 2 works:
nohup python test.py &> output.txt
I need the trailing &
because I want to do other tasks on the command line!
Solution
Solved: ... python -u ...
was the answer. Seems this additional option prevents Python output buffering.
Answered By - sphere Answer Checked By - Mary Flores (WPSolving Volunteer)