bash – 如何在shell脚本中启动程序并使shell脚本继续运行,即使程序保持打开状态

我在Ubuntu上使用bash.我想有一个 shell脚本打开一个程序并继续执行shell脚本的下一行,即使该程序尚未终止.
添加&命令将其放在后台.

例:

/path/to/foo    
/path/to/bar     # not executed untill foo is done


/path/to/foo &    # in background
/path/to/bar &    # executes as soon as foo is started

阅读有关工作控制herehere的更多信息

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...