Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use 'periodic' to execute non-system scripts UNIX
As many of you may know from a previous hint, the daily, weekly and monthly cron jobs are now processed via the periodic shell script.

If you have scripts that need to be run by root on a daily, weekly or monthly basis, you don't have to create a new entry in the system crontab; you can simply save them in the "daily", "weekly", or "monthly" folders that periodic uses. It essentially runs all scripts found in those folders.

The output of your script, if any, is appended to the daily.out, weekly.out, or monthly.out log files. Read the periodic man page for more details.

  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

Use 'periodic' to execute non-system scripts | 1 comments | Create New Account
Click here to return to the 'Use 'periodic' to execute non-system scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Adding to Crontab
Authored by: pcunix on Jan 27, '03 01:33:03PM

You don't even need to add your stuff to the folders:

The daily, weekly and monthly scripts each call etc/{daily,weekly,monthly).local at the end.

[ Reply to This | # ]