TCL脚本可打开多个xterm,并在打开的xterm中触发作业

问题描述 投票:0回答:1

我想在tcl中编写脚本来执行以下操作。

set ss test1

if ([string compare $ss "test1"]) {
   ## Open new xterm
   Ex:- bsub -Ip -n 1 -M 100 -q <queue_name> xterm &
   ## go to dir2 
   Ex:- cd dir2 
   ## then source test1_file in the opened xterm
} 
if ([string compare $ss "test2"]) {
   ## Open new xterm
   Ex:- bsub -Ip -n 1 -M 100 -q <queue_name> xterm &
   ## go to dir2 
   Ex:- cd dir2
   ## then source test2_file
}

当我尝试使用xterm -e“ cd dir1”并在unix终端中打开xterm并自动将其杀死。

请帮助我如何做。

感谢和问候,Gunnesh。

linux unix tcl xterm
1个回答
0
投票

我不确定,是否完全有帮助,但是我使用类似:

© www.soinside.com 2019 - 2024. All rights reserved.