You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Does Snow Leopard take care of cron sripts?

Are cron scripts still relavant in Snow Leopard and if you shut down/sleep your Mac overnight, does Snow Leopard take care of them when it starts or wakes up?

2.2 Ghz MacBook + 24" Imac, Mac OS X (10.6)

Posted on Sep 4, 2009 2:58 AM

Reply
13 replies
Sort By: 

Sep 5, 2009 3:54 PM in response to Jana1957

It must on from 3:15AM to 5:30AM not in Sleep mode. Check the link I posted.

Cron tasks run on any Mac left on between those hours regardless of the date of that article.

There's another way to run maintenance and that's to use iStatPro. Very handy widget
http://www.apple.com/downloads/dashboard/status/istatpro.html

iStat can run cron tasks for you anytime AND tell you when they were last run. It isn't necessary to run cron tasks more than once a month on a Mac.











Message was edited by: Carolyn Samit
Reply

Sep 5, 2009 3:57 PM in response to Peter Bowden

I haven't installed Snow Leopard yet, but I doubt that it is much changed from Leopard.

First, there are no "cron" scripts. Apple stopped using cron years ago. Since Tiger, these scripts are scheduled using a new service called launchd.

If your machine is up long enough, they will run automatically. Your machine does not have to be awake at any scheduled time. If you shut down your machine every night, they won't run -- but in that case there is no reason to run them at all. For most users, these scripts don't do anything significant until the machine has been up for at least 3 days continuously. That is really the point of these scripts -- to take care of things if the machine hasn't been restarted in a long time.

There is no reason to do anything at all, except to let these tasks take care of themselves.
Reply

Sep 5, 2009 4:00 PM in response to Carolyn Samit

Apple no longer uses Cron to run those scripts. They are run by launchd and will run the next chance the computer gets to run them.

My computer sleeps all night, this is my current daily.out time stamp: Sat Sep 5 07:04:30 CDT 2009
As you can see, it ran the daily script as soon as I woke it up.

While I don't think Apple will deprecate cron, launchAgents and daemons are the current method-du-jour. Lingon, while no longer being actively developed, will help create these very easily. I think it will be a while before Apple changes things so severely that Lingon's scripts won't work.
Reply

Sep 5, 2009 4:17 PM in response to Carolyn Samit

Carolyn Samit wrote:
It must on from 3:15AM to 5:30AM not in Sleep mode. Check the link I posted.


Not so. If your Mac is in Sleep mode during those hours, the scripts will run when the Mac wakes. I have Maintidget, a widget that reports when the scripts run, and it reports the times that the daily, weekly and monthly scripts have run, even though I always Sleep my MacBook overnight. I never force the scripts to run and never leave it on during the noted hours.

Bob N.
Reply

Sep 5, 2009 4:57 PM in response to Carolyn Samit

Carolyn Samit wrote:
It must on from 3:15AM to 5:30AM not in Sleep mode.

This is wrong and has been oft discussed before.if the computer is asleep overnight it will run the scripts when you wake it in the morning. let's not start the same old discussion again. more to the point, jeffrey is quite right that those periodic scripts are mostly useless and have been made even more so in snow leopard because rebuilding locate database was removed from the weekly script. running them by hand or installing some software to do them is a serious waste of time.
here is a good description (by jeffrey) of what those periodic scripts do
http://discussions.apple.com/message.jspa?messageID=8906776#8906776

Message was edited by: V.K.
Reply

Sep 6, 2009 5:43 AM in response to Carolyn Samit

Carolyn, if your Mac is running SL is running cron scripts, then you must have put them there. Cron is for all intents and purposes deprecated by Apple.

The launchd daemon runs the same maintenance scripts that cron once did, two OS's ago. Launchd is set up to run its tasks at the next opportunity following the scheduled time.

daily, weekly, monthly are all run by launchd. They are not cron scripts. If you go to the terminal and type crontab -l, or sudo crontab-l, you will get nothing.
Reply

Sep 6, 2009 5:53 AM in response to Peter Bowden

I rarely do +"me too"+ posts or venture into waters that more technical fish than I swim in! I must, however, chime in and agree with several posters that maintenance scripts run even if the Mac is asleep at night (like mine). The scripts will run when you wake the computer.

Barry
Reply

Does Snow Leopard take care of cron sripts?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.