All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
but all I see is a xterm flashing off really fast.
So does anyone know how to open an xterm and execute a few commands there and keep the new xterm alive still?
The reason why it's gone so fast is that it waits for all sub-processes to finish, and then terminates. "ls" probably finishes _very_ fast, so you only see a short flash...
This way the first command will be executed, and then you'll get an interactive shell. When this one is finished then (e.g. you type "exit" in it), xterm will terminate.
I know this is not an elegant solution, but it works.
I wanted to run a script to log me into another machine and then use the xterm, but after the bash shell appears I have to type in the script name to continue.
Is there any way to do this?
it would mean you wait for the script to terminate and then open a _local_ shell. I suspect you'll have to modify the script that it doesn't terminate and instead waits for your input. What does it look like?