I use a GENTOO distribution.
crontab -e
35 12 * * * root php5 /home/www/cron.php
When I run manually:
php5 php5
The syntax you use in crontab -e
does not allow you to specify the user name; it always runs as yourself.
So, the root
is a syntax error (it causes Cron to try to run the command root
, which probably does not exist); take it out and try again.
If you need the job to run as root, put the file (now with the user name) in /etc/cron.d/
.