Jump to content

Writing an AppleScript from UNIX command

UNIX reboot

  • Please log in to reply
No replies to this topic

#1
martonium

martonium

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 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?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy