Crontab Not Happening

I have a whole bunch of PHP scripts I put on crontab to do various tasks on my servers throughout the day.

I added one today as usual, set it to run every 10 minutes. However, it's never running. Here's the line:

*/10 * * * * php /home/counter/public_html/v3/batch.php

If I type this at the command prompt, from any directory, it runs fine. The file is owned by the counter user and has read/execute permissions for everyone. It's no different than other scripts I have on cron.

Why would this not work and how can I simulate running a command like cron would to see if there's any type of error?

The first line of batch.php is a mail() to myself to know that it ran but I haven't received those mails except when I run it myself.

 

 

 

 

Top