Run a script every 5 minutes (crontab style)
Gamliel last edited by
I try to make a report script of my server and I want my script to run in background every 5 minutes, is it possible?
dgelessus last edited by
Not really. You can use
time.sleepin your script to pause for a certain amount of time, but this won't work well if you don't have Pythonista open in the foreground. Apps running in the background are often terminated by iOS after a while when memory is needed by foreground apps. This means that you can't run any long-running background tasks with Pythonista.