How can I make a program automatically run once per day?

Benjamin Kaplan benjamin.kaplan at case.edu
Sat Jul 9 23:36:58 EDT 2011


On Sat, Jul 9, 2011 at 6:58 PM, Cameron Simpson <cs at zip.com.au> wrote:

> On 10Jul2011 03:00, Alexander Kapps <alex.kapps at web.de> wrote:
> | On 10.07.2011 02:26, John Salerno wrote:
> | >I have a script that does some stuff that I want to run every day for
> | >maybe a week, or a month. So far I've been good about running it every
> | >night, but is there some way (using Python, of course) that I can make
> | >it automatically run at a set time each night?
> |
> | Use your operating system's facilities to run timed jobs.
> |
> | Unix/Linux: Cron jobs
> | Windows: Scheduled Tasks
> | Mac: don't know, but probably Cron too
>
> Yep. Macs are UNIX, BSD derived.
>

Macs have Cron, but Apple's trying to switch away from it. They wrote their
own framework to replace the various process-launching programs called
launchd. It uses a pretty simple XML config file to launch programs either
at startup (replacing init) or on an schedule (replacing cron).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110709/e7d3c1dc/attachment-0001.html>


More information about the Python-list mailing list