Listing 1 shows a very simple program that simply exits with an exit code of 2.
清单1给出一个非常简单的程序,它的作用仅仅是使用退出码2退出。
When a shell script process exits or returns to the parent process, the exit code should be 0.
当shell脚本进程退出或返回到父进程时,退出码应该是0。
If this program exits with anything other than exit code 100, it will be automatically restarted.
如果此程序退出时的退出码不是100,程序将自动重启。
Typically, this exit code is 0 to indicate success with other values indicating different types of errors.
一般情况下,此退出代码为0指示成功;若为其他值,则指示不同类型的错误。
An application typically returns an exit code to the operating system to indicate whether an application exited successfully or not.
应用程序通常都会向操作系统返回一个退出代码,指示应用程序是否已成功退出。
An application typically returns an exit code to the operating system to indicate whether an application exited successfully or not.
应用程序通常都会向操作系统返回一个退出代码,指示应用程序是否已成功退出。
应用推荐