How to reboot Mac OS from C++ [duplicate]
Possible Duplicate:
Restart Mac OS X ungracefully using a C++ call?
All,
I am trying to reboot a Mac from my code. I find no such thing on the web. Has anyone done that?
On UNIX-like systems this should work:
system("shutdown -r now");
精彩评论