Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system command returning unknown error.



But for people who are old-time UNIX types, 'shutdown -r now' has one advantage that the method documented in the article doesn't: applications cannot cancel it the way they can cancel it through the AppleEvent mechanism

Sometimes there are situations where you Just Want to Bring the Machine Down, Unconditionally.  Now.  Where the only thing you care about is making sure the disk is synced.  Say, for example, if the GUI is hosed, but you have telnet/ssh access. 

In which case you use 'shutdown -r now', or the even bigger hammer of 'reboot'.

john francini





On 14 Jun 2006, at 16:32, Brian Bechtel wrote:

On 6/14/06, matt jaffa <email@hidden> wrote:
soo I am getting 32256 by executing    system("/sbin/shutdown -r now");

Even though you've solved your problem, I have to point out that
calling /sbin/shutdown is the moral equivalent of kicking the cat.
Don't restart that way.  Send an AppleEvent to restart.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: system command returning unknown error. (From: "Matthew Jaffa" <email@hidden>)
 >Re: system command returning unknown error. (From: John Francini <email@hidden>)
 >Re: system command returning unknown error. (From: "matt jaffa" <email@hidden>)
 >Re: Re: system command returning unknown error. (From: "Brian Bechtel" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.