0

我在linux中使用终结器终端

我正在尝试在启动终结器后运行 bash 脚本。

$ terminator -x sh /home/test/test.sh

它打开终止符运行脚本并在完成后关闭

我希望终止符在脚本执行后不关闭

4

3 回答 3

0

我没有hold在终结器的联机帮助页中找到类似 termite 或 xterm 的选项,但我在这里 ( 1 ) 找到了终结器的答案:

它有一个类似于 Gnome 终端中的选项,您必须创建一个配置文件 - 例如称为“保持” - 启用该选项。

要运行命令并保持打开状态:

terminator -e '<command>' -p hold.
于 2018-01-20T08:39:46.313 回答
0
terminator -x sh -c '/home/test/test.sh; read -p "Press any key... " -n1'
于 2018-01-20T09:07:05.413 回答
0

在中执行脚本时terminator,只需运行所需的 shell,终止符将保留

terminator -e 'echo "This will stay" && zsh || zsh'

&&||确保无论脚本成功或失败,shell都会执行

于 2019-10-31T19:24:21.037 回答