I need to write a bash script, which spawn a new xterm window and echo something over there. I have tried echo "hello" | xterm &
, which does not work... furthermore, is it possible to do any command on the new xterm?
xterm -e "echo "HELLO"; bash"
will keep the window open