Pitch Black wrote:I don't believe so. I'm afraid I don't know much about cron scripts.
I understand there are other apps for that such as Cocktail and quite a few others. What can you do using cron scripts? Anyone got a pointer for a cron noob to a good description of why I should be running them? cheers.
Mac OS X is a UNIX-based system, built in part on both BSD and FreeBSD. UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script. That's 24-hour time = 3:15-5:30 AM.
If your Mac is shut down or in sleep mode during these hours, the maintenance scripts will not run. This results in log files that will grow over time, consuming free space on your Mac OS X startup disk.
If your Mac is shut down or left in sleep mode overnight, the maintenance scripts should be run manually on a regular basis… unless you plan on devoting a large portion of your hard drive to the files cleaned-up by these routines!
Manually running the maintenance scripts: Two Methods:
The Easy Way
Download and install a third-party utility, such as Cocktail or Yasu, that provides a function for running the maintenance scripts. You may find additional solutions by searching MacUpdate or VersionTracker. Employ the version of the utility that is compatible with to the version of Mac OS X you are using.
These utilities permit running any individual maintenance script — daily, weekly, or monthly — or all of them. For example, running all three scripts weekly is a good habit if your Mac is frequently shutdown or in sleep mode overnight.
While we have not tested it, we have read positive reports from users of the freeware application Anacron. It runs the maintenance scripts automatically if the computer is awake and the scripts have not run when scheduled. As with other utilities, employ the version of Anacron that is compatible with the version of Mac OS X you are using..
The Terminal Way
Using your Admin account, you can run all three maintenance scripts at once:
1. Open Terminal, located in the Macintosh HD > Applications > Utilities folder.
2. At the Terminal prompt, type the following, exactly as written:
sudo periodic daily weekly monthly
3. Press Return.
4. Type your Admin password when prompted, then press Return.
All three scripts will run in sequence. There is no visual feedback while the scripts execute. You will know they are completed when the Terminal prompt returns.
You can also run the scripts individually. For example, to run just the daily script, you would type the the following command in step 2:
sudo periodic daily
NOTE: Be very careful when in Terminal; go slowly & take it step-by-step.