运行的xterm -e而不终止 [英] run xterm -e without terminating
问题描述
我要运行的xterm -e file.sh不终止。
在这个文件,我发送到后台,当剧本完成后,他们仍然没有完成。
命令我在做什么目前:
(CD / MyFolder文件; / xterm的-ls -geometry 115x65 -sb -sl 1000)
然后经过窗口弹出
上海file.sh
出口
我想要做的是一样的东西:
(CD / MyFolder文件; / xterm的-ls -geometry 115x65 -sb -sl 1000 -e SH file.sh)
不终止,等到在后台完成的命令。
任何人都知道该怎么做?
使用持有
选项:
的xterm -hold -e file.sh
-hold打开拥有资源,即的xterm不会立即shell命令完成时破坏它的窗口。它会等待
您使用的窗口管理器,直到摧毁/杀死窗口,或者如果你
使用发送信号菜单项,例如,HUP或KILL。
块引用>I want to run xterm -e file.sh without terminating.
In the file, I'm sending commands to the background and when the script is done, they are still not finished.
What I'm doing currently is:
(cd /myfolder; /xterm -ls -geometry 115x65 -sb -sl 1000)
and then after the window pops up
sh file.sh exit
What I want to do is something like:
(cd /myfolder; /xterm -ls -geometry 115x65 -sb -sl 1000 -e sh file.sh)
without terminating and wait until the commands in the background finish.
Anyone know how to do that?
解决方案Use
hold
option:xterm -hold -e file.sh
-hold Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
这篇关于运行的xterm -e而不终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!