• 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: Anton Kuzmin <email@hidden>
  • Date: Wed, 14 Jun 2006 22:09:03 +0100

Sorry, missed it by one bit, thought it was 0x7f :-)
0x7e I think is from bash, if it fails to launch an app/script..

Anton

That's what system() returns if it fails to execl() "/bin/sh" after fork()-ing, unfortunately it's not in the man page.
But I don't see how that could be caused by just not having root privileges.


Anton

matt jaffa wrote:
Ok so I admit I read it wrong regarding the return status, always got
0 for everything else I executed so I assumed 0 good and only -1 was
returned if bad.

soo I am getting 32256 by executing    system("/sbin/shutdown -r now");





_______________________________________________ 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: system command returning unknown error. (From: Anton Kuzmin <email@hidden>)

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