从一个.sh脚本运行多个.sh脚本? CentOS [英] Run multiple .sh scripts from one .sh script? CentOS
本文介绍了从一个.sh脚本运行多个.sh脚本? CentOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从一个 .sh
脚本运行多个 .sh
脚本,并将它们全部运行在单独的终端?我已经有
How can I run multiple .sh
scripts from one .sh
script and run them all in separate terminals? I already have
/root/A.sh& /root/B.sh& /root/C.sh
/root/A.sh & /root/B.sh & /root/C.sh
问题是它在同一终端上同时运行所有这些, code>&'的,它运行它们,当前一个完成运行,我怎么能使它们都在同一时间在单独的终端启动?
The issue is it runs all of these in the same terminal at the same time, and without the &'s
, it runs them when the previous one is finished running, how can I make them all startup at the same time in separate terminals?
推荐答案
这里是利用gnome终端标签功能的一种方法:
Here is one way leveraging gnome terminal tabbing capability :
gnome-terminal \
--tab-with-profile=Default --title=A.sh --command="/root/A.sh" \
--tab-with-profile=Default --title=B.sh --command="/root/B.sh" \
--tab-with-profile=Default --title=C.sh --command="/root/C.sh"&
这篇关于从一个.sh脚本运行多个.sh脚本? CentOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文