且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

bash-Shell脚本打开多个终端并执行不同的命令

更新时间:2023-11-30 10:54:04

如果没有 -hold ,则xterm将在命令完成后立即关闭.您可以使用双引号和命令分隔符(例如; & )执行多个命令:

Without -hold, the xterm will close as soon as the command is completed. You can execute multiple commands by using double quotes and command separators (eg ;, &):

xterm -title "App 1" -e "mycommand; mysecondcommand"