• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: system command returning unknown error.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system command returning unknown error.


  • Subject: Re: system command returning unknown error.
  • From: John Francini <email@hidden>
  • Date: Wed, 14 Jun 2006 16:57:13 -0400

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.
<http://developer.apple.com/qa/qa2001/qa1134.html>

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

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>)

  • Prev by Date: Re: Re: Re: system command returning unknown error.
  • Next by Date: Re: system command returning unknown error.
  • Previous by thread: Re: Re: Re: system command returning unknown error.
  • Next by thread: Re: system command returning unknown error.
  • Index(es):
    • Date
    • Thread