Use the && control operator to combine two commands so that the second is run only if the first command returns a zero exit status.
使用 && 控制操作符来组合两个命令,以便仅当 第一个命令返回零退出状态时才运行第二个命令。
Run a command only if another command returns a zero exit status.
仅当另一个命令返回零退出状态时才运行某个命令。
The last thing to do is exit with a zero return code so that the trigger monitor will commit the GET it performed on the trigger message and wait for another.
最后需要做的事情是使用一个零返回码退出,以便触发器监控器提交它在触发器消息上执行的GET并等待另一条消息。
Why 1? It's arbitrary, but it's anything other than zero so I just exit because something went wrong and this program is just going to bail.
为什么是1?这是任意的,但它是非零的,因为出错了,我退出程序,然后这个程序就释放了。
应用推荐