-1

I'm new to python and I'm developing a raspberry pi program that will check a sever ever 2 min. i have the server check part working But, I'm not sure how to accomplish the repeat. For example in arduino there is void loop() function there I could wait to see if 2min have pass then call the sever check function without a problem. How would I accomplish this in python?

Jean Pierre
  • 201
  • 5
  • 17

1 Answers1

0

Check out this link:

https://thepihut.com/blogs/raspberry-pi-tutorials/34930820-running-things-regularly-cron

You can setup a script to run every 2 minutes

Anu
  • 400
  • 1
  • 4
  • 19