0

Can we define exit status intereger values for our purpose except 0?

like can i set custom exit status messages:

"1" for error occured because of reason #1
"2" for error occured because of reason #2
...

Is there any document which displays all the exit status code values from 0-255?

3
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by masijade
0

There are no system wide standard exit codes other than 0 is success
and other than 0 is generally regarded as an error. It is completely up
to you how you want to handle exit codes.

0

Granted, you should not use those codes, but you also do not need to attempt to handle these conditions for yourself either. The system/shell will generally take care of these for you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.