title: Cronjob failing on Debian
body: <p>I'm having no idea why my cronjob isn't executed. Here are the details:</p>
  
  <p>I've a script inside /usr/src named stundenplan.sh, which executes a jar file.
  The script itself works if you are running it from the console.
  But trying to run it from a cronjob it doesn't work.</p>
  
  <p>The script looks like this:</p>
  
  <pre><code>#!/bin/sh
  java -jar vorlesungsplaene.jar
  </code></pre>
  
  <p>The jar file lies in the same directory as expected.</p>
  
  <p>I defined two cronjobs:</p>
  
  <pre><code># m h  dom mon dow   command
    30 * * * * /usr/src/stundenplan.sh
   0-59 * * * * echo "dude" &gt;&gt; /tmp/test.txt
  </code></pre>
  
  <p>The job below works fine, writing "dude" meticulously in the test.txt file.</p>
  
  <p>As you can see in the syslog, the job above fails:</p>
  
  <pre><code>Jul 18 15:29:01 vps47327 /USR/SBIN/CRON[16361]: (root) CMD (echo "dude" &gt;&gt; /tmp/test.txt)
  Jul 18 15:30:01 vps47327 /USR/SBIN/CRON[16364]: (root) CMD (/usr/src/stundenplan.sh)
  Jul 18 15:30:01 vps47327 /USR/SBIN/CRON[16365]: (root) CMD (echo "dude" &gt;&gt; /tmp/test.txt)
  Jul 18 15:30:01 vps47327 /USR/SBIN/CRON[16363]: (CRON) error (grandchild #16364 failed with exit status 1)
  </code></pre>
  
  <p>Any suggestions, ideas or solutions? ;)</p>