Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Run a script every 5 minutes (crontab style)
-
Hi,
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.sleep
in 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.