title: Cron job does not start
body: <p>I have a cron job that I want to execute every 5 minutes:</p>
  
  <pre><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /scr_temp/scheduleSpider.sh
  </code></pre>
  
  <p>In <code>/var/spool/cron/crontabs/root</code></p>
  
  <p>The cron should execute a shell script:</p>
  
  <pre><code>#!/bin/sh
  if [ ! -f "sync.txt" ]; then
      touch "sync.txt"
      chmod 777 /scr_temp
      curl someLink
  fi
  </code></pre>
  
  <p>That works fine from command line but not from cron. However the cron itself is startet but the script does not start.</p>
  
  <p>I read about the path problem but I dont really understand it. I setup a cron that writes some env data to a file. This is the output:</p>
  
  <pre><code>HOME=/root
  LOGNAME=root
  PATH=/usr/bin:/bin
  SHELL=/bin/sh
  </code></pre>
  
  <p>If I execute the env command in command line I get following output for PATH</p>
  
  <pre><code>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  </code></pre>
  
  <p>What path do I have to set in my shell script?</p>