jread

Python script performing oddly when run as a scheduled task on Windows Server

Discussion created by jread on Feb 29, 2012
Latest reply on Jul 22, 2013 by mvolz47
I have setup a python script to run as a scheduled task on a server running Windows Server 2008 (which was ridiculously hard to do in itself).  I can run the task manually and it does what it is supposed to do (export a bunch of Data Driven Pages as .pdfs), however it is *not* doing two of the things it is supposed to:  1. Open a console window while it's running, 2. Send an automated email when it is done.  Now, if I just manually double-click on the script itself and run it, the command window opens and the email is sent without any issues.

Why does it not do these things when run as a scheduled task?  Is there some sort of setting that I need to change?  I'm finding scheduled tasks in Server 2008 to be very painful to try to use.  I have none of these problems when running the script as a scheduled task in Server 2003.

Outcomes