Run cleanup tasks easily at any time

Sep 20, '02 09:03:40AM

Contributed by: belette

If your computer isn't alway on, but you want to run the periodic maintenance tasks, there's no need for a program such as MacJanitor anymore, the command line program periodic is here for you! There are a number of options that you need to specify for the program to run correctly; see the man periodic pages for more information. The basic format is:

 % sudo periodic time_period
Replace time_period with one of daily, weekly, or monthly to run the associated cleanup scripts for that timeframe.

[Editor's note: I'm not sure how long this command has been there, but I've never noticed it before. I'm also not sure if it's intended to be run from the command line, but it seems to work just fine.]

Comments (8)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020920060340323