But what about conditioning the execution of a command to the successful exit from the preceding one?
但是,如果命令的执行以前一个命令的成功退出为条件时该怎么办呢?
If the first character of a command is a hyphen (-), the remainder of the line is executed, but its exit status is ignored.
如果一个命令的第一个字符是连字符(-),那么该行中剩余的命令都会执行,不过其退出状态会被忽略。
Use the && control operator to combine two commands so that the second is run only if the first command returns a zero exit status.
使用&&控制操作符来组合两个命令,以便仅当第一个命令返回零退出状态时才运行第二个命令。
Similarly, the || control operator separates two commands and runs the second command only if the first command returns a non-zero exit status.
类似地,||控制操作符分隔两个命令,并且仅当第一个命令返回非零退出状态时才运行第二个命令。
As supported by the EXIT CLPPlus command, we can specify whether to commit or roll back the transactions whenever error occurs.
使用EXIT CLPPlus命令,我们可以指定在发生错误时是提交还是回滚事务。
This behavior is identical to the EXIT CLPPlus command.
该行为与EXIT CLPPlus命令是相同的。
If the ConnectionFactory is defined in a JNDI namespace, the exit can be set using the JMSAdmin tool with the command.
如果ConnectionFactory是在JNDI名称空间中定义的,则可以使用JMSAdmin工具通过以下命令设置该退出。
To ensure that the script doesn't exit before all the remote commands have executed, you need to add a wait command to wait for the children of the script to finish.
要确保该脚本不会在执行所有的远程命令之前退出,您需要添加一个wait命令,以等待该脚本的所有子操作执行结束。
Exit the Roo shell and run the MVN clean install command.
退出Rooshell并运行mvn cleaninstall命令。
Run a command only if another command returns a zero exit status.
仅当另一个命令返回零退出状态时才运行某个命令。
Run a command only if another command returns a non-zero exit status.
仅当另一个命令返回非零退出状态时才运行某个命令。
If you are adding a channel exit to a non-CCDT-defined WebSphere MQ messaging provider resource, then you can use either the administrative console or the wsadmin command line tool.
如果向非ccdt定义的WebSphereMQ消息提供程序资源添加通道出口,那么可以使用管理控制台或wsadmin命令行工具。
Notice that when you run the command, the if statement for the last exit status is never reached because the script exits upon a non-zero return status of the cp command.
注意,当您运行该命令时,实现最终的退出状态的if语句将永远无法满足条件,因为脚本在遇到cp命令的非零返回状态时将退出。
As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
Of these, the emacs command is designed for editing files, so you might want to have the user listed in the user column save and exit before you terminate that process.
其中的emacs命令用于编辑文件,所以可以让user列中列出的用户保存文件并退出,然后终止这个进程。
Errexit: if a command has an exit status of anything but 0 (zero), execute the err trap (if it is set and exists).
errexit:如果某个命令产生非0(零)的退出状态并且设置了err陷阱,则执行err陷阱并退出。
After setting the external port configuration, type exit twice to back out of the configuration mode of the command line.
在设置外部端口配置之后,输入exit两次,退出命令行的配置模式。
When you're done executing any commands that you want to capture your interaction with, you can type the exit command (or the Control-d key combination on most systems) to terminate the shell.
在执行您想要捕获与它的交互的任何命令时,可以键入exit命令(大多数系统上也可以按Control - d组合键)来终止shell。
If the user wants to exit, the user must type the exit command or press Control-D 11 times.
如果用户想要退出,则必须键入exit命令或按11次Ctrl - D。
A message displays containing the line number and command when the trap was caught; the script then exits (from the exit command on the trap command list).
在捕捉到trap后,会显示一条包含行号和命令的消息;脚本随后将退出执行(使用trap命令列表中的exit命令)。
This command cannot be used to change the type of connection factory. For example, to remove the send and receive channel exit configuration from the connection factory created above.
无法使用此命令更改连接工厂的类型。
As the Scilab code is put into the exec function, the exit command is concatenated to the end of it so you don't have to rely on the user to input the word exit each time.
由于Scilab代码被放入exec函数,exit命令遂被串接到其尾端,这样一来,就无需依赖用户每次输入exit。
If the first command does not exit as you expected, the second command still runs — and fails.
如果第一个命令未按您预期的那样退出,第二个命令仍然会运行——结果会导致失败。
As you can use any computing language that manages command-line arguments and exit status, the possibilities are almost endless!
正如您可以使用管理命令行参数和退出状态的任何计算语言一样,存在各种各样的可能性。
If doesn't exist, exit the command or script and display the error message set with.
如果不存在,就退出命令或脚本并显示用设置的错误消息。
If doesn't exist or is NULL, exit the command or script and display the error message set with.
如果不存在或者是NULL,就退出命令或脚本并显示用设置的错误消息。
The best option to exit the debugger is always to abort the command and return to the regular REPL window.
退出调试器的最佳选项始终是中止命令并返回到正常的REPL窗口。
After stopping the tracing, you can exit the GDB Debugger by typing the quit command.
停止跟踪以后,可以通过键入quit命令来退出GD b调试器。
Quit PHP interactive mode by sending an exit command.
通过发送exit命令退出php交互模式。
Quit PHP interactive mode by sending an exit command.
通过发送exit命令退出php交互模式。
应用推荐