Newsgroups: comp.unix.questions >How can I make xterm stays there even the -e command is finished? > >I want to directy my program output to a xterm window so that I can >use my mouse-click for the paging & scrolling. But the problem is >that the xterm windows disappears after my program finishes. Is >there a way to let xterm windows stays there? thanks
xterm -e sh -c 'command;echo Type Control-d to close window;cat'
When the command finishes, the "cat" command will wait for the user to type something followed by Control-d.
Barry Margolin