Why does bash sometime not flush output of a python program to a file -
I have a dragon script that calls a dragon script and outputs it in a file:
Python Run.py & gt; Current_date.log
Now sometimes when I do
tail- f current_date.log
I file Seeing fill with the output, but the log file is present for the second time, but remains empty for a long time. I'm sure the stuff is being printed after the dragon script starts moving, and the log file is has been made any idea why it remains empty for some time?
-u
logic to get the output without any output.
> python -h ... -u: Unbranded binary standout and stadder (also pithunbuffed = x) see man page for details of internal buffering related to '-u' ... < / Code>
Comments
Post a Comment