title: How can I launch multiple xterm windows and run a command on each, leaving each window open afterward?
body: <p>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 places them in positions I want (as you can see, I'm using bash):</p>
  
  <pre><code>#!/bin/bash
  xterm -geometry 80x27+1930+0 &amp;
  xterm -geometry 80x27+2753+0 &amp;
  xterm -geometry 80x27+1930+626 &amp;
  xterm -geometry 80x27+2753+626 &amp;
  </code></pre>
  
  <p>However, the next thing I do is go to the first window and type in</p>
  
  <pre><code>ssh server_a
  </code></pre>
  
  <p>then in the second</p>
  
  <pre><code>ssh server_b
  </code></pre>
  
  <p>and so on.  What I'd like to do is have my script do the ssh commands in each xterm window, and then leave the windows open for me to do my work.  I've seen the -e option for xterm, but the window closes after I execute my command.  Is there a way to do this?</p>
  
  <p>I apologize if this is a duplicate question.  I've searched around and haven't had any luck with this.  Many thanks!</p>