I need to run a PHP script automatically, and for that I'm using the Cent'os Cron and the project is written with the Yii framework. The fact is that I am trying to add a crontab with:
crontab -e
And then I add the script path and the moment I want it to run:
***** /var/www/html/ClubGolf cliente/informeMateriales
(The project is ClubGolf
, the controller is cliente
e informeMateriales
is an action of the controller)
When I run the crontab I get an error telling me that the time is wrong (or something like that) and I do not know why it can happen:
"/tmp/crontab.wqcMnf":1: bad hour errors in crontab file, can't install
Maybe I wrote the crontab badly, or I may have written the wrong route, since I do not write a complete route, but I take it directly to the action of the controller ...