title: How do you start Unix screen command with a command?
body: <p>According to the <a href="http://www.delorie.com/gnu/docs/screen/screen_12.html" rel="noreferrer">docs for the Unix "screen" command</a>, you can configure it in .screenrc to start with a bunch of default screens, each running a command that you specify.</p>
  
  <p>Here's my cofig:</p>
  
  <pre><code># Default screens
  screen -t "shell_0"  1
  screen -t "autotest" 2 cd ~/project/contactdb ; autotest
  </code></pre>
  
  <p>It will not run the autotest command. That window where I'm trying to run <code>autotest</code> just closes instantly when I start <code>screen</code>.</p>
  
  <p>I also tried it with just...</p>
  
  <pre><code>screen -t "autotest" 2 cd ~/project/contactdb
  </code></pre>
  
  <p>Same result.</p>
  
  <p>I also tried...</p>
  
  <pre><code>screen -t "autotest" 2 ls
  </code></pre>
  
  <p>Same result there too.</p>
  
  <p>What's the secret to getting it to run a command in a given screen on startup?</p>