Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45584
| Date | 2013-05-20 14:12 +1000 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: How to run a python script twice randomly in a day? |
| References | <8a44bb69-5e8c-4725-a0c8-505b3ecc1d89@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1857.1369024163.3114.python-list@python.org> (permalink) |
On 19May2013 20:54, Avnesh Shakya <avnesh.nitk@gmail.com> wrote: | How to run a python script twice randomly in a day? Actually | I want to run my script randomly in a day and twice only. Please | help me.. how is it possible. Do you mean "run twice a day, each at random times"? If so, do the obvious: at midnight, pick two random times. Sleep until the first time, run the script, sleep until the second time, run the script. There are various ways to do the sleeping and midnight bits; they're up to you. Enjoy, -- Cameron Simpson <cs@zip.com.au> The ZZR-1100 is not the bike for me, but the day they invent "nerf" roads and ban radars I'll be the first in line......AMCN
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to run a python script twice randomly in a day? Avnesh Shakya <avnesh.nitk@gmail.com> - 2013-05-19 20:54 -0700 Re: How to run a python script twice randomly in a day? Jason Friedman <jsf80238@gmail.com> - 2013-05-19 22:27 -0600 Re: How to run a python script twice randomly in a day? Cameron Simpson <cs@zip.com.au> - 2013-05-20 14:12 +1000
csiph-web