如何依次运行多个程序? [英] How to run multiple programs in a sequence?
本文介绍了如何依次运行多个程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三个不同的可执行文件按顺序运行,其中两个是字节可执行文件.我想按顺序自动运行它们.最初也需要用户输入.如何使用脚本自动执行此操作?任何人都可以重定向到一些教程或示例吗?
I have three different executables to run in sequence, two of them are byte executables. I want to automatically run them in sequence. It requires user inputs also initially. How to automate this with a script? Can anyone redirect to some tutorial or examples?
推荐答案
以分号分隔以依次执行:
Separate by semicolons for sequential execution:
cmd1 ; cmd2 ; cmd3
以&&"分隔这样,只有在上一个cmd成功的情况下,下一个cmd才会运行:
Separate by '&&' so that the next cmd runs only if the previous one succeeded:
cmd1 && cmd2 && cmd3
这是教程.请参阅第4.3节.
Here's a tutorial. See section 4.3.
这篇关于如何依次运行多个程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文