There is a UNIX command to force a reboot as follows:
sudo shutdown -r now
If you run this from Terminal, it will force the system to reboot AFTER you enter your administrator password. (Or alternatively, you can use the Send UNIX Command function in Apple Remote Desktop "as root" to force a reboot on a remote Mac)
What I am trying to figure out is how to write an AppleScript with this command that will run as root without being asked for a password.
Is there a way to do this?
Writing an AppleScript from UNIX commandUNIX reboot
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users