scheduler or infinite loop
nitinpawar432 at gmail.com
Wed Sep 29 14:02:23 CEST 2010
why not schedule cron */5 * * * * and check in your code that previous
execution was successful or not
On Wed, Sep 29, 2010 at 5:29 PM, harryos <oswald.harry at gmail.com> wrote:
> I am trying to write a program to read data from a site url.
> The program must read the data from site every 5 minutes.
> def get_data_from_site(pageurlstr):
> At first, I thought of using the sched module ,but then it doesn't
> look right adding so many scheduler.enter() statements.The program is
> supposed to execute the above function every
> 5 minutes until the application is shut down by the user.
> I created an infinite loop
> while True:
> print time.asctime()
> Is there a better way to do this?Any suggestions ,pointers most
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list