Setting up cron / launchd on OS X 10.5?

I had the joy this week of my 1TB network storage dying on me. It now sits on my desk making horrible clicking sounds at me hours on end… Luckily, my irreplaceable music + photos are safe, but I’d literally spent days meticulously ripping, encoding, tagging, and importing my DVDs into iTunes, and I’m not remotely excited about doing all that work again… not excited at all…

However, it did give me a great excuse to go buy two 1Tb My Books from the Apple store today – so that almost made up for it. :) And after a bit of rsync research, I wrote up a nice shell script to keep the two disks mirrored.

My next instinct was to set up a cron job to daily-sync everything at some ungodly hour in the morning, but to my surprise OS X 10.5 does not support croncron is deprecated in OS X! I’ve tried setting up launchd plists to get it syncing, but am having exactly zero luck. I even abandoned the command line for a launchd GUI app and still couldn’t get it working…

Is anyone else doing this? How do you daily-run tasks in OS X?

3 thoughts on “Setting up cron / launchd on OS X 10.5?

  1. Mm… maybe you misread that post about cron? Looks like it’s talking about moved crontabs when changes were made between Tiger and Leopard.

    Cron works fine on Leopard itself. I have both my MacBook and MacBook Pro running a bash+rsync script out of user crontabs for nightly data backups.

    In Terminal, as the user you want to run the cronjob, just type “crontab -e” to start editing your crontab.

    Oh, and, grats on the new disk, and not losing data.

  2. And… following up on myself… I didn’t realize cron was deprecated in 10.5 (which that post claims)… That said, deprecated it may be… but it’s still working.

    I really don’t feel like learning launchd. I’ve also played with Lingon. It just doesn’t work as simply as cron.

Leave a Reply

Your email address will not be published. Required fields are marked *