I don't have a server or anything, but I have 1 iMac running Snow Leopard in my office that a nontechie uses. I would like for it to automatically install any new updates when the computer is told to shut down every day. I know I can set Software Update to check for updates daily, and download them if they exist. But what about actually installing them without confirming each time. I don't want to do a cron job, because if that person is working late it wouldn't be good if it tries to shut down on them. Also that person is running with a std user account, so to install updates I have to enter my admin level account's credentials. Is there any way to do this?
Installing updates (or doing anything else, for that matter) on shutdown on Mac OS X is problematic, as the operating system gives processes just eight seconds to shut down before it kills them - not nearly enough time to do updates.
Nonetheless, there are probably ways to solve your problem. Depending on how well you and your user's working patterns match up, you could wait for them to notify you that there are updates and it's convenient for them to restart, then type your administrator password in person or over VNC/Screen Sharing.
Alternatively, if you have SSH active, you can log in and use the command-line program
Apple suggest that you should restart your computer immediately after running
Save this in
This will run