Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'subject:Python': 0.05; 'developer,': 0.05; 'python': 0.09; 'adam': 0.16; 'forth.': 0.16; 'from:addr:awilliam': 0.16; 'from:addr:whitemice.org': 0.16; 'from:name:adam tauno williams': 0.16; 'gpg': 0.16; 'received:72.14.190': 0.16; 'received:72.14.190.87': 0.16; 'received:mail.wmmi.net': 0.16; 'received:wmmi.net': 0.16; 'reply-to:addr:awilliam': 0.16; 'reply- to:addr:whitemice.org': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'received:72.14': 0.20; 'trying': 0.21; 'do.': 0.21; 'header:In- Reply-To:1': 0.25; 'wondering': 0.26; 'this?': 0.28; 'run': 0.28; 'url:python': 0.32; 'to:addr:python-list': 0.33; 'doing': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'more': 0.63; 'here': 0.65; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'min': 0.84; 'rita': 0.91; 'forever.': 0.93; 'processes,': 0.93 Subject: Re: Python scheduler From: Adam Tauno Williams To: python-list@python.org Date: Thu, 21 Feb 2013 09:48:16 -0500 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: awilliam@whitemice.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361460015 news.xs4all.nl 6947 [2001:888:2000:d::a6]:53527 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39434 On Wed, 2013-02-20 at 23:04 -0500, Rita wrote: > Here is what I am trying to do. (Currently, I am doing this in cron > but i need much more granularity). I am trying to run program every 20 > secs and loop forever. I have several of these types of processes, > some should run every 5 mins, 10 secs, 20 secs, 1 min and so forth. I > was wondering what is the best way to do this? If you need a scheduler - use a scheduler! :) Works great, and very flexible. -- Adam Tauno Williams GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA