Activate a daemon several times a day

Simon Forman rogue_pedro at yahoo.com
Thu Jul 6 12:19:23 EDT 2006


Yves Glodt wrote:

> while True:
> 	if now(hours) in runat:
> 		act()
> 		sleep(60)
> 	sleep(10)
>

Note that, if "now(hours)" *is* in runat,  this loop will sleep 70
seconds, not 60.  It probably doesn't matter.




More information about the Python-list mailing list