Resolve Common PC Errors
You may have encountered an error showing shell error codes. Now there are various steps you can take to fix this problem which we will discuss shortly. The exit code, or maybe even the exit status, is the number returned by the executable to indicate if it was successful. It is also sometimes referred to as an ROI code or, in some cases, an error code, although the terminology may vary slightly on this site.
According to the table above, the exit codes of a particular person will help you – 2, 126 – one hundred sixty-five, 255.andare of particular importance and should therefore also be avoided.farewell custom settings. End script with Exit127 will definitely lead to confusion about when to troubleshoot.(error code “command definitely not found” ” or something like that?)Customs. However, a large number of scripts use the output1 as a good general rescue in case of an error. From exit code1 often so many mistakes,Not only can this be especially useful for debugging.
There is already an attempt to systematize the numbers of output positions.(see /usr/include/sysexits.h),but this is for respected C and C++ programmers. SimilarA scripting standard might be appropriateThis document proposes to limit user exit codes torange sixty-four – 113 (in addition to0, necessary for success) to adaptC/C++ standard. This will give 50 valid codes and discount codes.Simplified script debugging.All user exit codes in the accompanying document sample forThis conformance allows you to use this standard unless it is supersededThe circumstances are the same as in Example 9-2.