This is probably dumb enough to belong in the newbie section, but...
How do I run a command or a script in a new window, and then hold that window open, so I can review the results?
For example, if I try:
xterm -e "tail ./foo"
A window opens, the command runs, and then the window immediately closes. If I try to add:
xterm -e "tail ./foo;read -p 'Press any key to continue...'"
all that changes is that
Press any key to continue...
is echoed in the original
window instead of the new one.
Doesn't matter if I try this from the command line, or from inside a shell script.
There must be a simple (obvious?) way to do this.