title: How to expand out a cron script to run manually
body: <p>This is my cron script (a portion of):</p>
  
  <pre><code>CUSER=tim
  APPDIR=/var/www/testing
  APPVENV=/var/www/testing/ven
  cat &gt; $APPDIR/cronfile &lt;&lt; EOF
  PWD=$APPDIR/$CUSER
  PATH=$APPVENV/bin:\$PATH
  0 2 * * * testapp search newsite
  EOF
  crontab $APPDIR/cronfile
  </code></pre>
  
  <p>It seems to work but I'm really confused about how I would try to run this manually. What does this expand to if I wanted to run it from a command from shell?</p>
  
  <p>I tried something like this but it didn't work :(</p>
  
  <pre><code>cd /var/www/testing/ven 
  testapp search newsite
  </code></pre>