How can I launch multiple xterm windows and run a command on each, leaving each window open afterward?

前端 未结 4 737
陌清茗
陌清茗 2021-01-03 07:53

I\'m lazy, and I prefer that computers do my work for me. I ssh into several machines on a daily basis, so I created a simple script that launches some xterm windows and pl

4条回答
  •  爱一瞬间的悲伤
    2021-01-03 08:24

    I'd love to see a more elegant answer, but what I came up with does work:

    xterm -e bash -c 'echo foo; exec bash'
    

    Replace echo foo with the command of your choice, and you're good to go.

提交回复
热议问题