Usually I'd like to run my python code in linux as the following:
nohup python test.py > nohup.txt 2>&1 &
in the file test.py, I often use print to print out some messages to stdout. But actually I have to wait very long time then could see the messages were printed out to nohup.txt. How can I make it print out quickly.
flushin your test program?