Exit Codes With Special Meanings

来源:互联网 发布:photoshop软件绿色版 编辑:程序博客网 时间:2024/05/17 18:25
http://www.museum.state.il.us/ismdepts/library/linuxguides/abs-guide/index.html

http://www.museum.state.il.us/ismdepts/library/linuxguides/abs-guide/index.html

Table C-1. "Reserved" Exit Codes

Exit Code NumberMeaningExampleComments1catchall for general errorslet "var1 = 1/0"miscellaneous errors, such as "divide by zero"2misuse of shell builtins, according to Bash documentation Seldom seen, usually defaults to exit code 1126command invoked cannot execute permission problem or command is not an executable127"command not found" possible problem with $PATH or a typo128invalid argument to exitexit 3.14159exit takes only integer args in the range 0 - 255128+nfatal error signal "n"kill -9 $PPIDof script$? returns 137 (128 + 9)130script terminated by Control-C Control-C is fatal error signal 2, (130 = 128 + 2, see above)255exit status out of rangeexit -1exit takes only integer args in the range 0 - 255
原创粉丝点击