failed: as can be seen: the output in 1.8.x is 「42」, but in 1.9 becomes 「1」. (the 「result」 here is the exit code of the ruby interpreter).
可以看到:在1.8.x上面的输出结果是「42」,但是在1.9上面就变成了「1」 (上面的「result」是ruby解释器的退出代码)。
again, if the exit code of zenity is 0, then entry has the person's name. here is the calendar example from above rewritten to use zenity
再次说明,如果zenity的退出代码是0,那么entry有某人的姓名。
if this program exits with anything other than exit code 100, it will be automatically restarted.
如果此程序退出时的退出码不是100,程序将自动重启。
action: correct the cause of the exit code and reschedule the job.
它报错好像是说函数不正确的原因吧。
an application typically returns an exit code to the operating system to indicate whether an application exited successfully or not.
应用程序通常都会向操作系统返回一个退出代码,指示应用程序是否已成功退出。
specifies the exit code that is provided by the executed command.
指定由执行的命令提供的退出代码。
register ebx contains the exit code (2, in our case), a number that is returned to the os.
ebx寄存器包含退出码(在这个示例中是2),也就是返回给操作系统的一个数字。
typically, this exit code is 0 to indicate success with other values indicating different types of errors.
一般情况下,此退出代码为0指示成功;若为其他值,则指示不同类型的错误。
listing 1 shows a very simple program that simply exits with an exit code of 2.
清单1给出一个非常简单的程序,它的作用仅仅是使用退出码2退出。
still, how to reliably differentiate this from application exit code and output?
如何把它和系统退出代码区别开来仍旧是个问题。
gets or sets the exit code that an application returns to the operating system when the application exits.
获取或设置应用程序在退出时返回给操作系统的退出代码。
shuts down an application that returns the specified exit code to the operating system.
关闭将指定退出代码返回给操作系统的应用程序。
the exit code of the last command executed—echo $?—is shown in listing 6.
执行的最后一个命令的退出码(echo $?)见 清单6。
the function returns an integer, which represents the exit code for the child process.
这个函数返回一个整数,代表子进程的退出码。
however, you are free to return exit code values that are appropriate to your application.
不过,可以随意返回适合于应用程序的退出代码值。
the user exit code shown below is compiled as a dynamic linking library (for example: dll).
下面所示的用户退出代码被编译成动态链接库(如dll)。
channel requests relay information such as the exit code of a server-side process.
通道请求转送信息,比如服务器端流程的退出代码。
when a shell script process exits or returns to the parent process, the exit code should be 0.
当shell脚本进程退出或返回到父进程时,退出码应该是0。