title: Linux crontab doesnt launch a script
body: <p>I have this user crontab (accessed via the command crontab -e):</p>
  
  <pre><code># m h  dom mon dow   command
  */3 * * * *          sh /home/FRAPS/Desktop/cronCheck.sh
  </code></pre>
  
  <p>The script cronCheck.sh looks like that:</p>
  
  <pre><code>#!/bin/sh
  SERVICE='Script'
  
  if ps ax | grep -v grep | grep -i "$SERVICE" &gt; /dev/null
  then
      echo "######## $SERVICE service running, everything is fine ##################\n" &gt;&gt; CronReport.txt
  else
      echo "$SERVICE is not running. Launching it now\n" &gt;&gt; CronReport.txt
      perl Script.pl 
  fi
  </code></pre>
  
  <p>When I launch the script (cronCheck.sh) from its own directory, it works like a charm, but when cron launches it, it always "# $SERVICE service running, everything is fine ###"
  despite 'Script' is not running.</p>
  
  <p>Thanks,</p>