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

Chris Angelico rosuav at gmail.com
Wed Jul 27 14:35:11 CEST 2011


On Wed, Jul 27, 2011 at 10:27 PM, Dave Angel <davea at ieee.org> wrote:
> As Chris pointed out, you probably aren't getting the script's directory
> right.  After all, how can the scheduler guess where you put it?  The
> obvious answer is to use a full path for the script's filename.  Another
> alternative is to fill in the current directory in the appropriate field of
> the scheduler's entry.

I would prefer setting the current directory, as that allows the
script to find any data files it needs, but either works.

> I find it useful to only add batch files to the scheduler.  Those batch
> files can do any setup and cleanup necessary.  In this case, the batch file
> might simply set the current directory to the location of the script.

And that is an excellent idea. Definitely recommended.

ChrisA



More information about the Python-list mailing list