2

How do I have a python script run everyday at a set-time. Say exactly at 2:00 P.M. every day.

Is there a way to have it run exactly twice a day?

Not really sure where to start with this. Thanks for the help.

2
  • 7
    in linux/unix you can use cron Commented Apr 14, 2011 at 1:00
  • use cron if that is available. Commented Apr 14, 2011 at 1:03

1 Answer 1

7

Don't reinvent and use functionality existing for decades on any system: cron

Apart from that: PyPI lists a bunch of cron-related or cron-similar packages:

http://pypi.python.org/pypi?%3Aaction=search&term=cron&submit=search

In addition: Python provides a dedicated 'sched' module:

http://docs.python.org/library/sched.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.