Windows XP - cron or scheduler for Python?

googlePoster scott2237 at yahoo.com
Fri Jul 2 15:29:34 EDT 2004


"Larry Bates" <lbates at swamisoft.com> wrote in message news:<b92dnUC9u-vPf0vd4p2dnA at comcast.com>...
> 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"
> ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


i just found a cool scheduler called pycron that apparently is written
in python

*my* problem is i forgot how to make python scripts executable -- i have
this foggy memory of 'if __name__ == "__main__":' not getting triggered
if you're using something other than the command prompt, but i am failing
to find it written down anywhere, and pycron tells me it ran my scripts,
but nothing actually happens -- very frustrating



More information about the Python-list mailing list