I need to run a CRON each 5 minutes for a specific user example.com
, the script executed is a php file.
File : /var/spool/cron/crontabs/example.com
/5 * * * * /usr/bin/php -f /home/example.com/public_html/cron.php
Nothing happens (no error in log, no error mail, nothing). Same when testing with :
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php -f /home/example.com/public_html/cron.php
Of course running the file manually works. Also, changing the CRON every minutes works :
* * * * * /usr/bin/php -f /home/example.com/public_html/cron.php
When trying the same start timing (5 minutes) but as root
, it is running perfectly (/var/spool/cron/crontabs/root instead of /var/spool/cron/crontabs/example.com).
I've tested on Slackware 12.0 and Slackware 14.0... same problem.
crontab -e
which checks the format for problems? Or, are you accessing the file directly with you editor?vi
or withwebmin
(tested both). Also testedcrontab -u example.com -e
... no more luck.