Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.082 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'latter': 0.09; 'subject:script': 0.09; 'thu': 0.09; 'random': 0.14; 'rigid': 0.16; 'for?': 0.16; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'script': 0.25; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'controlled': 0.31; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'minutes,': 0.36; 'doing': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'easily': 0.37; 'to:addr:python- list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'ian': 0.60; 'kind': 0.63; 'between': 0.67; 'subject:there': 0.68; 'min': 0.84; 'random,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=doOg3MY7XbnjGB9Hjayl0TLHeiJIl1QnPpJdPIMwNxU=; b=GXsCyusw8vZ7CQCzJMW5+hclpERma45ia0Y4JUIHeZ59tgTmQ2JNN1ERAabXrEt2Wj jwibgoJhX6LE0J70pVvstsl6jlDHF6HYGOWVAQWXZzdeWHEDb/nVMpSvI/KEKq7ljHJT mDJucwW1csmQTU2nXyvp0jJ0ldWTfPWk3UwBqC74/Zdtnno/9c9e4f5m4xE8FYECQgvR WizWOvFmu0+2NxdASCLM0HTmVJJRnzH3dOUj9U884FM+Hu0wmCY3Iz0dSEtevjLrfUFY q2oNGrJ6+AJT3iZGlXw58+0xM7naeoq52g7JZd9dCB0umXIUAYbI4obuBIXibFrpteKZ N1XA== X-Received: by 10.42.236.75 with SMTP id kj11mr4094091icb.47.1418940796558; Thu, 18 Dec 2014 14:13:16 -0800 (PST) MIME-Version: 1.0 References: <54921444$0$12995$c3e8da3$5496439d@news.astraweb.com> From: Juan Christian Date: Thu, 18 Dec 2014 22:13:16 +0000 Subject: Re: Is there a way to schedule my script? To: Python Content-Type: multipart/alternative; boundary=20cf3026698222e6e4050a84e628 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418940799 news.xs4all.nl 2884 [2001:888:2000:d::a6]:38768 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82653 --20cf3026698222e6e4050a84e628 Content-Type: text/plain; charset=UTF-8 On Thu Dec 18 2014 at 2:24:46 PM Ian Kelly wrote: What kind of random distribution of the time between executions are you looking for? A random sleep lends itself easily to a uniform distribution. The latter approach that you describe would result in a geometric distribution. I'm looking for a random, but controlled delay between executions. Let's say I execute the script now, then in 5~10 min I'll execute again, this time can be 5, 6, ... 10 minutes, this script pretends to do 'human actions' so I can't be doing these 'actions' with a specific and rigid times. The delay between the executions can't be the same always. --20cf3026698222e6e4050a84e628 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu Dec 18 2014 at 2:24:46 PM Ian Kelly <<= a href=3D"mailto:ian.g.kelly@gmail.com">ian.g.kelly@gmail.com> wrote= :
What kind of random distribution of the time between executions are yo= u looking for? A random sleep lends itself easily to a uniform distribution= . The latter approach that you describe would result in a geometric distrib= ution.

I'm looking for a random, but controlled = delay between executions.

Let's say I execute = the script now, then in 5~10 min I'll execute again, this time can be 5= , 6, ... 10 minutes, this script pretends to do 'human actions' so = I can't be doing these 'actions' with a specific and rigid time= s.

The delay between the executions can't be t= he same always.
--20cf3026698222e6e4050a84e628--