title: Telling nohup to write output in real-time
body: <p>When using <code>nohup</code> the output of a script is buffered and only gets dumped to the log file (nohup.out) after the script has finished executing. It would be really useful to see the script output in something close to real-time, to know how it is progressing. 
  Is there a way to make <code>nohup</code> write the output whenever it is produced by the script? Or, since such frequent file access operations are slow, to dump the output periodically during execution? </p>