简体   繁体   中英

Ensure program is running with Windows 7 Task Scheduler

I have set up a python script to run daily from my pc by adding it to the start up section in Windows 7.

However, does any know how I can set up a job (probably from Task Scheduler) to alert me if the program has stopped running ie if for some reason the cmd screen is closed etc... so that I can restart it or automatically restart it

Mike

To me it sounds like what you actually are looking for is windows services.

About services

If you don't know what a windows service is, then msdn have some documentation about it.

Creating a windows service in python

For a concrete example on how to do this in python, go here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM