title: Run a task at specific intervals in python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/373335/suggestions-for-a-cron-like-scheduler-in-python">Suggestions for a Cron like scheduler in Python?</a>  </p>
  </blockquote>
  
  
  
  <p>What would be the most pythonic way to schedule a function to run periodically as a background task? There are some ideas <a href="http://code.activestate.com/recipes/65222/" rel="nofollow noreferrer">here</a>, but they all seem rather ugly to me. And incomplete.</p>
  
  <p>The java <a href="http://java.sun.com/javase/6/docs/api/java/util/Timer.html" rel="nofollow noreferrer">Timer</a> class has a very complete solution. Anyone know of a similar python class?</p>