title: Problem running a small script as cron job
body: <p>I am problem scheduling and running a script through cron job. I am on linux (ubuntu), it is a VPS.
  What I am doing is I have put this line in crontab file that is here: /etc/crontab
  I wrote:</p>
  
  <pre><code>*/15 *    * * *   www-data  php /var/www/abs/phpscript.php
  </code></pre>
  
  <p>I have given 777 to the file and after writing above in crontab , I run command:</p>
  
  <pre><code>crontab crontab
  </code></pre>
  
  <p>Then after almost some time I got the mail in my /var/mail/username file that says: /bin/sh: root: not found</p>
  
  <p>So I am unable to understand what is the problem. </p>
  
  <p>I also run phpinfo and it shows the third variable as APACHE that probably means that PHP is running as apache module.</p>
  
  <p>Please tell what can be the possible solution.</p>
  
  <p>thanks in advance to every one who will try to solve my problem.</p>