Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Writing an AppleScript from UNIX command

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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.