Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45583

Re: How to run a python script twice randomly in a day?

References <8a44bb69-5e8c-4725-a0c8-505b3ecc1d89@googlegroups.com>
Date 2013-05-19 22:27 -0600
Subject Re: How to run a python script twice randomly in a day?
From Jason Friedman <jsf80238@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1856.1369024044.3114.python-list@python.org> (permalink)

Show all headers | View raw


>    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

I can think of two basic approaches.
One, use crontab or some other similar functionality to call it exactly twice.
Two, use crontab or some other similar functionality to call it every
minute, and add code to your script to execute exactly twice.
Which are you preferring?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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