Possible duplicate:Restart Mac OS X shamelessly with a C ++ call?
All,
I am trying to restart Mac from my code. I do not find such a thing on the Internet. Has anyone done this?
On UNIX-like systems, this should work:
system("shutdown -r now");