Hi,
I'm trying to set up crontab to execute a php script.
My crontab file content is:
* * * * * php /var/myDirectory/myfile.php>/tmp/myfile.log 2>/tmp/myfile.err
The file is successfully executed from command line typing:
php /var/myDirectory/myfile.php
Using crontab it doesn't work.
Crontab service is running, in crontab log file I can't see anything regarding the execution of my script.
I've even tried to run a simpler command:
* * * * * echo "hello" > /tmp/log.txt
but it doesn't work at all.
My crontab file is located in /var/spool/cron/crontabs and it's called "root" as I access with root profile to the command line.
Anyone knows why it's not working?
Thanks
Bookmarks