【问题标题】:Linux - open multiple terminals from one sh fileLinux - 从一个 sh 文件打开多个终端
【发布时间】:2014-06-17 02:45:09
【问题描述】:

我试图通过运行一个 .sh 文件同时运行 4 个终端窗口。 我的 .sh 文件包含:

xterm -e "command1"

xterm -e "command2"

xterm -e "command3"

xterm -e "command4"

任何帮助将不胜感激。谢谢

【问题讨论】:

    标签: terminal command


    【解决方案1】:

    & 附加到每个命令

    xterm -e "command1" &
    xterm -e "command2" &
    xterm -e "command3" &
    xterm -e "command4" &
    

    “&”将作业置于后台,从终端“释放”它,以便下一个命令可以运行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-02
      • 1970-01-01
      • 1970-01-01
      • 2021-08-11
      相关资源
      最近更新 更多