![]() To get the exit code of a command type echo $? at the command prompt. ![]() If exit codes are not set the exit code will be the exit code of the last run command. On POSIX systems the standard exit code is 0 for success and any number from 1 to 255 for anything else.Įxit codes can be interpreted by machine scripts to adapt in the event of successes of failures. What is an exit code in the UNIX or Linux shell?Īn exit code, or sometimes known as a return code, is the code returned to a parent process by an executable.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |