Date: 2017jun4
OS: Linux
Distro: RedHat/Fedora/Centos
Q. Linux: Is there an easy to use cron for common requirements?
A. At least on RedHat-based system you an make a script a drop it into
one of these folders:
/etc/cron.monthly
/etc/cron.daily
/etc/cron.hourly
/etc/cron.weekly
And make it executable:
chmod a+x myscript
There are so many good things about doing it this way.
- Each package can have its one script
- When you remove the package the script is also removed
- Really simple to use, no numbers or syntax to schedule.
- The scripts are run in alphabetical order so you can easily make
your run first or last.
But, of course, there are scheduling requirements this folders don't handle.