Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Frisco

macrumors 68020
Original poster
Sep 24, 2002
2,475
69
Utopia
open the terminal ...and write
sudo periodic daily.....press enter
sudo periodic weekly.... press enter
sudo periodic monthly ...press enter

I saw this on another post in Macrumors, but they didn't say what it did.

Any know?

Thanks
 
It runs executable files in a given directory at the interval supplied (daily, weekly, etc). In terminal do a "man periodic" to see the entire description.
 
not quite

periodic is a program responsible for launching maintenance scripts (or your own scripts) for your mac.

This is usually handled by cron, but your machine must be on and running and sometimes people just want to run them at will. so...Running those commands in terminal will execute the daily, weekly, and monthly maintenance scripts as defined in /etc/periodic/daily, /etc/periodic/monthly, and /etc/periodic/weekly
 
overnight panther runs scripts to take care of the little things...just like janitorial clean up...but since they run at like 3 am, and not everybody is up that late...or has their computer up that late..you can run them manually

another option is a clever little application called MacJanitor

hope this helps
 
Will those scripts run even if the Mac is on but in "deep sleep" mode?

I don't ever turn my Mac off, but it does sleep when I do :)

So, at 3:00am, whilst I sleep, does my mac wake up, run the scripts, and go back to sleep? I have a pretty small apartment & I assume I'd hear the HDD spin up & never have, so I figure it doesn't, but I also figure that Apple doesn't expect people to leave their Macs running their fans, HDDs, & all that all night...
 
schatten said:
Will those scripts run even if the Mac is on but in "deep sleep" mode?

I don't ever turn my Mac off, but it does sleep when I do :)

So, at 3:00am, whilst I sleep, does my mac wake up, run the scripts, and go back to sleep? I have a pretty small apartment & I assume I'd hear the HDD spin up & never have, so I figure it doesn't, but I also figure that Apple doesn't expect people to leave their Macs running their fans, HDDs, & all that all night...
Modern Macs will not wake from sleep to run automated scripts (controlled by cron). Here's a link for proof: http://www.apple.com/downloads/macosx/unix_open_source/anacron.html
 
dudeami said:
You can change the time that these maintenance scripts run by editing crontab.
hey ...that was a neat tip dude...thanks...i changed it to 9 in the evening....most likely time that my machine wd be up...
cheers
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.