bash – 如何在shell脚本中启动程序并使shell脚本继续运行,即使
发布时间:2020-12-16 01:28:37 所属栏目:安全 来源:网络整理
导读:我在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
我在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 阅读有关工作控制here和here的更多信息 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |