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


Click here to return to the 'Use the run-parts script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use the run-parts script
Authored by: Schamschula on Nov 19, '04 02:44:50PM
In order to prevent Apple from overwriting things, and to add additional functionality, I use a script borrowed from Debian Linux: run-parts. This script is fired off using entries in crontab, but executes any scripts placed in a folder, e.g. /etc/cron.daily and so forth. I have been using this method to run my repair permissions script once a week for about a year and a half. See my HowTo at www.hmug.org for details.

[ Reply to This | # ]
Use the run-parts script
Authored by: adrianm on Nov 20, '04 02:56:22AM
No need. Just put your own scripts in /etc/periodic/weekly|daily|monthly.

If you don't want to use that directory, provide a /etc/periodic.conf with overriden local_periodic setting...

(Or provide a local /etc/periodic.conf.local with overriden local_periodic setting...)

Or put scripts in your own weekly|daily|monthly directories in /usr/local/etc/periodic/ (create this directory - it doesn't exist by default)...

Or many other standard ways.

As always, don't make things hard for yourself. man periodic and man periodic.conf. RTFM.

[ Reply to This | # ]