Jump to content

Writing an AppleScript from UNIX command


martonium
 Share

1 post in this topic

Recommended Posts

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?

Link to comment
Share on other sites

 Share

×
×
  • Create New...