holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.6k stars 116 forks source link

launchd/cron equivalent #50

Open JayBrown opened 4 years ago

JayBrown commented 4 years ago

Is it possible to create something like an app-internal equivalent to launchd/cron? I.e. to create, modify, load, unload, start "agents" that run scripts in the bin directories? Could e.g. have settings like StartInterval every n seconds, RunAtAppLaunch, RunAtLoad, KeepAlive etc.

holzschu commented 4 years ago

That sounds like something interesting, but extremely difficult to do. It would probably be easier to do this using Apple's shortcuts. Also, anything that keeps an app alive or restarts it without explicit user input is frowned upon by Apple (I can see several scenarios where it would create security issues).

holzschu commented 4 years ago

The latest version of Shortcuts (in iOS 14) has an option to run shortcuts at specific time or time intervals. Now that a-Shell supports Shortcuts, that seems like the best answer to your question.