how to call a function for evry 10 secs

anand jeyahar anand.ibmgsi at gmail.com
Sat Jul 2 03:49:50 EDT 2011


 >
>  > Hi All,
> > I need to call a function for evry 10 secs
> > how can i achieve this in python
>
>
> import time
> while True:
>    time.sleep(10)
>    function()
>


Please don't reinvent the wheel...
Use the python apscheduler module.
http://packages.python.org/APScheduler/#installing-apscheduler


Thanks and Regards,
==============================================
Anand Jeyahar
https://sites.google.com/site/<
https://sites.google.com/site/aangjie/home/quotes>
anandjeyahar
==============================================
The man who is really serious,
with the urge to find out what truth is,
has no style at all. He lives only in what is.
                 ~Bruce Lee

Love is a trade with lousy accounting policies.
                ~Aang Jie<https://sites.google.com/site/aangjie/home/quotes>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110702/957ded1d/attachment-0001.html>


More information about the Python-list mailing list