gotermux
gotermux copied to clipboard
Add `termux-job-scheduler`
API: no public API available
Description: Schedule a script to run at specified intervals.
Options:
--pending list pending jobs and exit (default false)
--cancel-all boolean cancel all pending jobs and exit (default false)
--cancel boolean cancel given job-id and exit (default false)
Options for scheduling:
--script text path to the script to be called
--job-id int job id (will overwrite any previous job with the same id)
--period-ms int schedule job approximately every period-ms milliseconds (default 0 means once)
--network text run only when this type of network available, default none (any|unmetered|cellular|not_roaming|none)
--battery-not-low boolean run only when battery is not low, default true (at least Android O)
--storage-not-low boolean run only when storage is not low, default false (at least Android O)
--charging boolean run only when charging, default false
--trigger-content-uri text (at least Android N)
--trigger-content-flag int default 1, (at least Android N)