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?

Can not get any output right now You can configure your script to flush the output or you can add the dragon with the -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

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -