title: How to create a screen executing given command?
body: <p>i'm fairly new in *nix. Is there a way to create a screen, which will immediately execute a given command sequence (with their own arguments)? Two hours of googling yields nothing - perhaps because I can't
  clearly state the question.</p>
  
  <p>I hope for something like</p>
  
  <pre><code>screen -dmS new_screen exec "cd /dir &amp;&amp; java -version"
  </code></pre>
  
  <p>I am using screen v4.00.03 and CentOS 5.5 (kernel ver. 2.6.18-194.26.1.el5.028stab079.2)</p>