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

Run cleanup tasks easily at any time UNIX
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.]
  • Currently 2.67 / 5
  You rated: 1 / 5 (3 votes cast)

Run cleanup tasks easily at any time | 8 comments | Create New Account
Click here to return to the 'Run cleanup tasks easily at any time' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cron uses periodic
Authored by: Lizard_King on Sep 20, '02 10:23:46AM

If you take a look at your crontab, you should see some entries that use the periodic command.

[ Reply to This | # ]
Cron uses periodic
Authored by: belette on Sep 20, '02 10:39:24AM

yup, that's how I found this command :)

[ Reply to This | # ]
Cron uses periodic
Authored by: porkchop_d_clown on Sep 20, '02 12:51:33PM

That's odd. I'm running 10.1.5, but I do not have "periodic" or man pages for it.

[ Reply to This | # ]
Been there for QUITE a while
Authored by: Cerberus on Sep 20, '02 10:52:06AM

it is in my 10.1.5. Checkout your default login stuffs.

i.e. in /usr/share/init/tcsh

[ Reply to This | # ]
Been there for QUITE a while
Authored by: googoo on Sep 20, '02 02:02:45PM

Either you installed periodic inadvervantly, or you have a different version of 10.1.5 than I do. I have no such file in /usr/share/init/tcsh or anywhere on my hard drive.


[ Reply to This | # ]
it's a script
Authored by: hayne on Sep 20, '02 11:17:45AM

The command 'periodic' is actually A Bourne shell script (/usr/sbin/periodic) whcih means that you can read it if you are curious for more details as to what it does.

[ Reply to This | # ]
Periodic 10.2.x+ only
Authored by: bluehz on Sep 20, '02 02:06:36PM

Periodic is new in 10.2.x.

[ Reply to This | # ]
How to turn off periodic
Authored by: dannyboy5995 on Sep 20, '02 05:25:40PM

Does any one know how to stop/reverse the periodic process once it has already be entered?

[ Reply to This | # ]