Mac OS X House Keeping
Listen to this article
Having been a linux weenie for a few years now I had become accustomed to running various house keeping jobs on a regular basis and I wanted to do the same thing on my new PowerBook.
In particular, I use locate for quickly finding files, which to be of any use, requires the the indexer (updatedb) to be run periodically. A quick grep through the man pages and I discovered the OS X version was /usr/libexec/locate.updatedb so the next step was to get it to run as a batch job.
Whilst searching for the appropriate place to put my daily system cron jobs (/etc/daily.local), I ran across this little gem in /etc/daily:
# Clean up NFS turds. May be useful on NFS servers.
Comments
it does it already, just only a weekly basis. you found periodic?
Posted by: peter royal | November 5, 2004 12:49 PM
Ahh cool. You know I didn't even look that far LOL.
Yeah I saw that periodic runs the daily, weekly, monthly scripts. It was looking through daily that I worked out that I needed a daily.local but it never occurred to me that it might already be running on a weekly basis.
P.S. Downloaded CHUD. Will take al ook at Shark tonight. See if I can profile drools on my own machine again :-)
Posted by: Simon Harris | November 5, 2004 01:06 PM