En Fri, 24 Apr 2009 11:54:40 -0300, grocery_stocker
escribió:
scheduler = sched.scheduler(time.time, time.sleep)
How do I modify it so that it runs every hour on the hour.
(The sched module is almost useless, IMHO)
I'd use cron (linux) or schtasks (windows).
If it has to be a Python scrip
En Fri, 24 Apr 2009 11:54:40 -0300, grocery_stocker
escribió:
scheduler = sched.scheduler(time.time, time.sleep)
How do I modify it so that it runs every hour on the hour.
(The sched module is almost useless, IMHO)
I'd use cron (linux) or schtasks (windows).
If it has to be a Python scrip
grocery_stocker wrote:
Given the following...
[cdal...@localhost oakland]$ more basic.py
How do I modify it so that it runs every hour on the hour.
I'd probably use cron, but here's one way.
Emile
-
import sched
import time
scheduler = sched.scheduler(time.time, time.sleep)
def pri