Search code examples
bashxterm

how to echo to a newly spawned xterm


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?


Solution

  • xterm -e "echo "HELLO"; bash" 
    

    will keep the window open