LordOphidian
Adjutant On-Line
Why don't you just use AppleScript to restart the mac.
That does the equivilent of the Restart menu item in the Apple menu.
Code:
$ osascript -e 'tell application "System Events" to restart'
That does the equivilent of the Restart menu item in the Apple menu.