anacron

by L Schmidt

Version 4 (April 9, 2021)

Download (14 downloads)

anacron is a scheduler for non-accurately timed periodical script execution. Scripts are executed at hourly, daily, weekly and monthly intervals.
This flow, when launched, creates directories hourly, daily, weekly and monthly as subdirectories of a configurable directory, defaulting to the name "anacron". For a script to get executed at the desired interval, place it in the corresponding directory. Each directory can hold an arbitrary number of scripts.
By default, sh will be used to execute these scripts. For scripts beginning with a hashbang, the interpreter specified there will be used instead. Note that the home directory that interpreter changes to may be different from /storage/emulated/0 to which automate shell command execution defaults to - use canonical paths or change to the desired directory in your script.
I'm using anacron mostly for launching bash scripts which rotate logs, remove historic logs, rsync mobile devices with NAS, trimming file systems. I'm considering to introduce a "boot" directory next to the periodic execution directories.

4.5 average rating from 2 reviews

5 stars
1
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.