Run a script every 5 minutes (crontab style)
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?
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.