1

I wrote a Python script which I want to execute every 2 minutes. The script basically exports data and writes it into a .json file. Another script reads the data later and imports them into another system.

My question is, how can I execute the program every 2 minutes... I don't have any PHP skills, so I can't "translate" the program and create a simple cronjob on my webserver.

Is it possible with a Managed Server with Microsoft Server 2019? Or is there any other possibility to do this?

Thank you in advance :-)

ASSolution
  • 115
  • 8
  • Does https://stackoverflow.com/questions/28215153/run-python-script-every-5-minutes-under-windows help? – Nigel Ren May 16 '21 at 18:31
  • Thank you! But the script must run 24/7. So I can't set up a simple cronjob on a client computer. That's why it should be executed on a server :) – ASSolution May 16 '21 at 18:34

1 Answers1

1

Use time module to sleep

import time
time.sleep(120)