Check for OS X Updates Automatically

h0bbel — sh — ⌘1 2013-12-16 09-52-51

Yeah, I admit it. I want OS X Mavericks, and I want it now.

Unfortunately, it´s not available yet from Software Update. So instead of manually checking every 5 minutes or so, I decided to create a small bash script that does it for me.

It´s very, very simple, but I think it does the job:

First off, pop into Terminal and get root access:

1
h0bbel::h0bair { ~ }-> sudo su -

Then create a small bash script, I named mine update.sh, that contains the following:

1
2
3
4
5
while true
do
softwareupdate -l
sleep 60
done

Change it to be executable by running

1
chmod +x update.sh

Then run the script, to have softwareupdate run over and over again (60 seconds after it completes) until you break it with ctrl-c

1
2
3
4
5
h0bair:~ root# ./update.sh
Software Update Tool
Copyright 2002-2010 Apple

No new software available.

At least I now get warning once it´s available. I can has Mavericks nao?

Leave a Reply