1

I want to always run a Python script in Windows. Every 5 minutes, it is to check if the script is running and if not, run it.

In linux, this can be done using flock and cron job. How can this be done in windows?

1
  • Windows task scheduler. Commented Jan 10, 2019 at 0:19

1 Answer 1

1

You can use the Task scheduler. Create a new basic task with python as the program and your script as the argument.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.