Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2017jun4 OS: Linux Distro: RedHat/Fedora/Centos Q. 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.weeklyAnd make it executable:chmod a+x myscriptThere 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.
Add a commentSign in to add a comment