Is there a way to setup automatic apple updates? Seems silly to leave it up to the users and *hope* they update their macs...
Is there a way to setup automatic apple updates? Seems silly to leave it up to the users and *hope* they update their macs...
Join the HEXUS Folding at Home Team!!
Welcome to HEXUS! - Read this if you're new!
hexus trust | joshwaller.co.uk | tea review
In Terminal the following would work:
$ softwareupdate -i -a
Add it to crontab and you are set...not sure if it would trigger reboots (for applicable patches) or not...but I doubt it would.
Code:Zangetsu:~ michaeldesilva$ softwareupdate /? usage: softwareupdate <mode> [<args> ...] -l | --list List all appropriate updates -d | --download Download Only -i | --install Install <label> ... specific updates -a | --all all appropriate updates -r | --recommended only recommended updates -u | --url <url> ... from signed package URLs Per-user preferences: --ignore <label> ... Ignore specific updates --reset-ignored Clear all ignored updates --schedule (on | off) Set automatic checking -h | --help Print this help
cheers, but whats crontab?
Join the HEXUS Folding at Home Team!!
Welcome to HEXUS! - Read this if you're new!
hexus trust | joshwaller.co.uk | tea review
Um, you are serious right? OK...
I've not used automator, but crontab is pretty much the 'scheduler'. I've looked at automator but you can do this as follows:
a) have a custom applescript getting that command run in Terminal once a week or something
b) Use automator
c) crontab (easiest imo..)
Mike
This is something I used to have running sometime ago. Basically you can then have your shell script do the action. Or you could directly give the commands rather than redirecting to a script
Code:# crontab.cron # minute (0-59), # | hour (0-23), # | | day of the month (1-31), # | | | month of the year (1-12), # | | | | day of the week (0-6 with 0=Sunday). # | | | | | commands # ------{ daily cron jobs }------------ # 0 10 * * * /Users/michaeldesilva/Scripts/backup-script 0 22 * * * /Users/michaeldesilva/Scripts/backup-script
Once you have adjusted it for your needs let's actually add it.
# crontab crontab.cron
Now let's check and see if it's right
# crontab -l
This should list it
From now on your new crontab will be in effect![]()
Did that really need three posts?
And while I'm here, can you do something about the size of your sig, thanks.
Sorry about the 3 posts thing, 'twas a mistake, will fix sig brb
System Update has the option to check daily, weekly, or monthly. Of course, it won't do everything by itself, but, it will alert users when there are updates...
There are currently 1 users browsing this thread. (0 members and 1 guests)