d*c
4 楼
because when "ls" finishes, the xterm is closed. if you do
xterm -e top
you'll see it working.
I think if you need to run multiple command in that xterm window, you need
to invoke a shell there. like xterm -e bash bash_script_file
【在 c******r 的大作中提到】
: 多谢了.可能我没说清楚,
: 我想写一个shell程序,里面需要打开一个xterm,然后在新窗口里执行
: 很多命令.怎么实现?
: xterm -e commandname似乎只能加一条命令,而且
: 我运行xterm -e ls似乎什么也得不到,新打开的窗口一闪就没了.
xterm -e top
you'll see it working.
I think if you need to run multiple command in that xterm window, you need
to invoke a shell there. like xterm -e bash bash_script_file
【在 c******r 的大作中提到】
: 多谢了.可能我没说清楚,
: 我想写一个shell程序,里面需要打开一个xterm,然后在新窗口里执行
: 很多命令.怎么实现?
: xterm -e commandname似乎只能加一条命令,而且
: 我运行xterm -e ls似乎什么也得不到,新打开的窗口一闪就没了.
相关阅读
Re: 已经有打印机在网络上如何设置并使用?A problem about child process.file problem in unixhow to decrypt a crypted string??请教:How to increase stacksize in Alpha workstation with compaq Tru64 UNIX?how to enlarge the font in netscape?求救,ZhXWin Install.菜鸟一问Where is Cxterm5.1?How to print landscapely(vs. Portrait) in Wordperfect?how to set path environment in Solaris?请诊断:Re: 请问下载的APACHE在UNIX下要用C编译一下,编译工具UNIX是否自带?[转载] Any PC 2 Phone tools for Linux?Pine: how to sort the received email?磁带驱动器求救!help on sed破unixHow to use vi and cxterm together?Re: hi