Running a python code periodically

paul paul at subsignal.org
Thu Apr 10 15:24:55 EDT 2008


Larry Bates schrieb:
> paul wrote:
>> Maryam Saeedi schrieb:
>>> Hi,
>>>
>>> I was wondering if you know how can I run a python code once every five
>>> minutes for a period of time either using python or some other program 
>>> like
>>> a bash script.
>> See the sched module in the standard library or here:
>> http://pypi.python.org/simple/Recur/
>>
>> cheers
>>  Paul
>>
> You could use cron also.
I hate external dependencies! Whats worse is the need to fiddle with 
settings in different locations. All of a sudden, arcane looking 
crontabs are configuration files you have to care about. Better to avoid 
that.

cheers
  Paul




More information about the Python-list mailing list