Asynchronous cron jobs 

Tags :

You are probably all aware that your Mac runs daily, weekly and monthly maintenance scripts to check the integrity of your system and clean it up.

The Unix subsystems on Mac OS X were originally written for machines that were typically never shut off. Mac OS X inherits this assumption in version 1.x, and has many system maintenance tasks that are scheduled to run between 3 am and 5 am. In addition, there are scripts designed to run weekly on weekends, and once a month in the middle of the night.
Orig. MacJanitor

Utilities such as MacJanitor or Cocktail solved this problem by allowing you to run them manually. But you still had to think of doing it. Another solution is to change the time and day at which they are supposed to run, hoping that your computer would powered on then. Utilities such as CronniX help you do right that and more -- you can also edit the cron table by hand.

Downloading the latest version of DéjàVu, I fell on a reference to Anacron:

Anacron is a periodic command scheduler. It executes commands at intervals specified in days. Unlike cron, it does not assume that the system is running continuously. It can therefore be used to control the execution of daily, weekly and monthly jobs (or anything with a period of n days), on systems that don't run 24 hours a day. When installed and configured properly, Anacron will make sure that the commands are run at the specified intervals as closely as machine-uptime permits.
It isn't a full-time daemon. It has to be executed from boot scripts, from cron-jobs, or explicitly.

Now this is just what I've been looking for for my AlPB which is seldom powered on at 3:00a. I changed the execution time of the maintenance scripts, but that doesn't help if the Mac is sleeping or off.. I'l give it a try and let you know.

Posted a response ? — Webmention it

This site uses webmentions. If you've posted a response and need to manually notify me, you can enter the URL of your response below.

Comments and responses

  • 07 Mar 2004

    Joerg Windbichler:

    i have been using Macaroni for quite some time now and i’m perfectly happy with it! I don’t have to think of the cron jobs etc. at all!
    just my two cents…
    PS: thanks for the “mappy” tip. it’s aweseome

  • 23 Mar 2004

    Thanx, you really saved me with MacJanitor and Cocktail the’ve been really helpfull.

Want more ? — prev/next entries