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似乎什么也得不到,新打开的窗口一闪就没了.
相关阅读
hex edit in xemacs?copy为什么这么慢?help needed for xfig installationWhat is "Apache"?How to ensure atomic execution of linesNiu!Re: can't open display in cygwin我决定给自己的程序加密?How to show the version of HPUXQuestion on CPU trace tool8888帮忙:怎样知道UDP socket里queue了多少data?[转载] 怎样在windows下面批处理一些任务?tool to trace function flow?unix command explain??[转载] [Q] sh under Redhat9.0how to install Solaris[转载] 请大家帮忙看看,机器被黑了有人用horde imp做webmail么?网页从mac里怎么挪到sgi里?Telnet到solaris上如何看系统版本和CPU速度?