ADC:システム終了、再起動、スリープ、ログアウトをさせるには

投稿者: | 01/29/2008

http://developer.apple.com/jp/qa/qa2001/qa1134.html

How do I programmatically shutdown, restart, sleep or logout a machine running Mac OS X?

    printf(“1: Restart computer\n”);
    printf(“2: Shutdown computer\n”);
    printf(“3: Logout computer\n”);
    printf(“4: Sleep computer\n”);
    printf(“q: quit program\n”);

今後使いそうなのでメモしておこう。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です