title: Nohup for Python script not working when running in the background with &
body: <p>Boiling down to the smallest problem here is a simple python script that I want to run using nohup on linux. I run it using the following (on linux):</p>
  
  <pre><code>nohup python test.py &amp;
  </code></pre>
  
  <p>The command seems to just not do anything, nothing is appended to nohup.out. If I run it without the &amp; the output shows correctly on the terminal window. What am I missing?</p>
  
  <pre><code>import time
  
  def test():
      while(True):
        print "Woke up!"
        time.sleep(5)
  
  if __name__ == "__main__":
      test()
  </code></pre>