On 19May2013 20:54, Avnesh Shakya <avnesh.n...@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 <c...@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 -- http://mail.python.org/mailman/listinfo/python-list