我想在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。
我不确定,是否完全有帮助,但是我使用类似: