【发布时间】:2017-02-05 00:24:18
【问题描述】:
我正在编写一个 shell 脚本,我需要我的脚本来打开一个 xterm 窗口运行一个命令,并且在不关闭 xterm 的情况下继续执行该脚本。
代码基本上是一个巨大的菜单案例。
这是我的脚本示例
...
example() {
echo -n "thingy > "
read thingy
echo -n "thingy1> "
read thingyl
xterm -hold -e *el command*
menux
}
...
问题:
脚本打开 xterm 执行命令并保持窗口打开但不会继续脚本,如果我按 ctrl + c 它将返回到 shell
【问题讨论】: