mm2270 / JamfProScripts

A collection of shell scripts created for use in Jamf Pro and elsewhere
MIT License
173 stars 30 forks source link

selectable_SoftwareUpdate.sh need to add caffeinate #9

Open maburdett opened 8 years ago

maburdett commented 8 years ago

Hi,

I have had a couple laptops get stuck when using selectable_SoftwareUpdate.sh
I was able to ssh into the computers and send a command caffeinate -u that "woke" all the sleeping process and the computer rebooted as expected. The computers had no user logged in when the script ran. I'm running this script using Casper.

I was wondering if you could add to the selectable_SoftwareUpdate.sh script, the command caffeinate for computers OS X 10.9, or greater to prevent a computer from sleeping while this script is running.

Mike