title: Is there a way to unbuffer nohup for a running python program?
body: <p>I started running my python program on a server with:</p>
  
  <pre><code>nohup python program.py &amp;
  </code></pre>
  
  <p>The program contains a loop which runs a function and prints its output each time:</p>
  
  <pre><code>for i in s:
      print f(i)
  </code></pre>
  
  <p>I started the program yesterday, but my <code>nohup.out</code> is still empty. I searched the internet and it seems python buffers the outputs. I don't want to stop and rerun my program. Is there any way to flush the outputs to <code>nohup.out</code> now?</p>