title: Run "screen -S name ./script" command on @reboot using crontab
body: <p>I've tried adding this to my crontab:</p>
  
  <p>@reboot /root/startup</p>
  
  <p>The "startup" file:</p>
  
  <pre><code>#!/bin/sh
  
  svnserve -d -r /root/svnrepos/mainres
  svnserve -d -r /root/svnrepos/mapres --listen-port=3691
  screen -S mta ./mtaserver/mta-server &gt; log1
  screen -S mapmta ./mapserver/mta-server &gt; log2
  
  exit 0
  </code></pre>
  
  <p>Now svnserve commands run fine. The problem is with the screen command.</p>
  
  <p>log1 and log2 files have the same content which is: Must be connected to a terminal.</p>
  
  <p>What I'm trying to do is start the 2 executables on startup, and then later have a way to access them.</p>
  
  <p>Is there a way to do this?</p>