• The format of the trap command is.

    trap命令格式

    youdao

  • To catch a signal that is sent to your process, use the built-in trap command.

    捕捉发送进程信号请使用内置trap命令

    youdao

  • The first is the return status from a command, and the second is the trap command within your shell.

    第一命令返回状态第二个是外壳中的trap命令。

    youdao

  • When a signal is caught, the current command being executed attempts to complete before the trap command takes over.

    捕捉到信号后,正在执行当前命令尝试trap接管之前结束执行。

    youdao

  • The first trap command causes the stopsleep function to be run whenever a SIGCHLD, SIGINT, or SIGTERM signal is received.

    第一trap命令将使stopsleep函数在接受到SIGCHLD、SIGINTSIGTERM信号时运行。

    youdao

  • The ERR goes with the signal list within the trap command. In the following example, a non-existent file is copied, which invokes an error

    ERRtrap命令中提供一个信号列表

    youdao

  • The trap command prevents the script from being interrupted by the user (by pressing control-C during boot, for example) while the script executes.

    trap命令防止用户脚本执行时中断(例如引导键入control - c)脚本。

    youdao

  • 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命令)。

    youdao

  • To use trap, you specify the command or function to be executed when the signal is trapped, and the signal number or Numbers that you want to trap, as shown here in Listing 13.

    使用跟踪可以指定跟踪到信号执行命令函数跟踪的信号编号如此处的清单13

    youdao

  • 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陷阱退出。

    youdao

  • 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陷阱退出。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定