Install all mac os x software updates that don’t require a reboot.

softwareupdate -l | grep -v restart | grep -B 1 \, | grep \* | cut -d " " -f 5 | xargs softwareupdate -i