LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Official command return status specification?? (https://www.linuxquestions.org/questions/linux-general-1/official-command-return-status-specification-423738/)

kinzlaw 03-11-2006 02:25 AM

Official command return status specification??
 
I'm working on an embedded linux project, I have to concern every aspect of the small collection of software which I'm using with it.
I want to make a specification of the return status(the integer number returned by the command when it exits) for every command(especially the shell scripts I wrote myself) in the system. I guess there would be some worldwidely accepted standard of which number means what status, but I haven't found it in my familiar sources of information.
Can anyone help? Thanx!

jlliagre 03-11-2006 02:38 AM

The standard is:
= 0 -> Success
!= 0 -> Failure

There is no other convention, each command is free to choose what a non zero return status means.


All times are GMT -5. The time now is 03:48 AM.