title: How to run a script forever?
body: <p>I need to run my Python program forever in an infinite loop..</p>
  
  <p>Currently I am running it like this - </p>
  
  <pre><code>#!/usr/bin/python
  
  import time
  
  # some python code that I want 
  # to keep on running
  
  
  # Is this the right way to run the python program forever?
  # And do I even need this time.sleep call?
  while True:
      time.sleep(5)
  </code></pre>
  
  <p>Is there any better way of doing it? Or do I even need <code>time.sleep</code> call?
  Any thoughts?</p>