You could simply put a time delay in your program at the end of the loop before it starts again-<div><br></div><div><div>import time</div><div># sleep for 1 minute</div><div>time.sleep(60)</div><br><div class="gmail_quote">
On Wed, Feb 20, 2013 at 8:04 PM, Rita <span dir="ltr"><<a href="mailto:rmorgan466@gmail.com" target="_blank">rmorgan466@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div><br></div><div><br></div><div>Here is what I am trying to do. (Currently, I am doing this in cron but i need much more granularity). I am trying to run program every 20 secs and loop forever. I have several of these types of processes, some should run every 5 mins, 10 secs, 20 secs, 1 min and so forth. I was wondering what is the best way to do this?</div>
<div><br></div><div><br></div><div>Also, would Greenlet do something I am asking for?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><div><br></div>-- <br>--- <span>Get your facts first, then you can distort them as you please.</span>--
</div>
</font></span><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br></div>