• Custom Search

Scheduling Python scripts as Scheduled Tasks

When scheduling python scripts as Scheduled Tasks in Windows, take note that although you specify the script with arguments eg :

kl_ofm.py -g -v

When the scheduled task runs, it runs as kl_ofm.py without the arguments.

The above is something to take note of when scheduling Python scripts.

 

One option around this is to put kl_ofm.py -g -v into a batch file and schedule the batch file as the job to run.

Read more python,work articles

This entry was posted in python, work. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*