title: Logging process output to file in real time
body: <p>I have a python script running on startup in the background.  Its print commands do not come through to the bash console as they do when calling the script manually with e.g. <code>python script.py</code>.  Output and errors can be redirected to file by calling <code>python script.py &gt; log.txt 2&gt;&amp;1</code>.  But after startup, as the script runs, I can see the log file but it has zero size, so is presumably waiting for the script to end.  Calling it with <code>cat</code> returns nothing.  I've tried using append >> instead with no luck.</p>
  
  <p>Is there any way to make the output happen in real time, so it can be viewed?</p>