Posted on 08-16-2016 03:59 PM
I'd like to add a restart to the end of a delete keychain script that users can run from Self Service,
is there any way to trigger Apple's restart dialog so the users can choose to Cancel or Restart, i know
i could create a notification/script using Cocoa Dialog or jamfHelper but i'd like to keep it simple if possible.
I've looked for a keyboard shortcut that simulates restart from the Apple Menu as i thought i could maybe send those key strokes in a script?, and running sudo shutdown -r doesn't give any feedback at the user level.
cheers
Solved! Go to Solution.
Posted on 08-16-2016 04:14 PM
If i'd just searched harder!
osascript -e 'tell app "loginwindow" to «event aevtrrst»'
does what i need
Posted on 08-16-2016 04:14 PM
If i'd just searched harder!
osascript -e 'tell app "loginwindow" to «event aevtrrst»'
does what i need