Kicking off a python script using Windows Scheduled Task

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Oct 18 22:57:12 EDT 2008


In message
<ccba7d53-20b7-4d26-bc3f-7c286f0e4f2d at a19g2000pra.googlegroups.com>,
korean_dave wrote:

> Does anyone know how to properly kick off a script using Windows
> Scheduled Task? The script calls other python modules within itself.
> HERE'S THE CATCH:
> I am used to running the script directly from the command window and
> the print() is very handy for us to debug and monitor. When running
> the task from Windows Scheduled Task, we'd like to be able to view the
> command window and keep it up after the Task has completed...

Why not redirect stdout and stderr to a log file, and tail that?

Another option might be screen <http://www.gnu.org/software/screen/>.



More information about the Python-list mailing list