Windows XP - cron or scheduler for Python?

Larry Bates lbates at swamisoft.com
Mon Jun 21 09:27:52 EDT 2004


I run python programs ALL the time on Windows XP
using the scheduler.  Two things you must
remember when doing this:

1) Your program runs in a "different" environment
than your foreground application.  It DOES NOT
inherit drive mappings, environment variables,
paths, etc. so you must fully qualify everything.

2) Always call Python and have it run the application.
Don't just try to run progname.py.

HTH,

Larry Bates
Syscon, Inc.

"Eric @ Zomething" <eric at zomething.com> wrote in message
news:mailman.78.1087794803.454.python-list at python.org...

I'm trying to have some scripts run periodically on Windows XP and found the
"Task Scheduler" did not execute my scripts.  My scripts are of the form
scriptName.py, and will run just by invoking that name in the Command
Prompt.

Has anyone used the Windows Task Scheduler to run .py scripts, and if so is
there some intracacy to it?

Is there a more UNIX version of a cron program one can run on Windows?

Has anyone written a simple cron program for Windows in Python, or does
anyone see any complication with doing that (which I have not grasped)?

Do I just need to build myself an **IX box?





Eric Pederson
http://www.songzilla.blogspot.com
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
e-mail me at:
do at something.com
except, increment the "d" and "o" by one letter
and spell something with a "z"
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::





More information about the Python-list mailing list