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

Jason Friedman jsf80238 at gmail.com
Mon May 20 00:27:15 EDT 2013


>    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?



More information about the Python-list mailing list