title: bash - Shell script opening multiple terminals and executing distinct commands
body: <p>I've tried to write my own shell script. So far I've managed to open 4 xterminals that can only execute ONE command because of the 'hold' option.</p>
  
  <p>If i don't use this option, the terminals just disappear.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>#!/bin/sh
  xterm -title "App 1" -hold -e mycommand | mysecondcommand  &amp;
  xterm -title "App 2" -hold -e mycommand | mysecondcommand  &amp;
  xterm -title "App 3" -hold -e mycommand | mysecondcommand  &amp;
  xterm -title "App 4" -hold -e mycommand | mysecondcommand
  </code></pre>
  
  <p>Not so sure if I'm supposed to execute the second command in the same terminal that way.</p>
  
  <p>Any ideas ?</p>
  
  <p>Thank you</p>