I have a problem with cron task creating. I created the task, and its working just fine on my server if I run the following command:
php symfony namespace:taskname
At the crontab I use the following command:
usr/bin/php /home/user/mysite/symfony namespace:taskname
If I run this command, I only get the symfony
commands list. In other words, it looks the same as if I type in just php symfony
. Somehow the namespace:taskname
part is not passed.
Any ideas?
Advertisement
Answer
first you need to write syntax like
X X X X X usr/bin/php /home/user/mysite/symfony namespace:taskname
where X X X X X
is time period in which you want to run command . also set time according to your task completion time. it may overlap time.
still same problem then it may be your timezone is not ok in php.ini file. set your timezone in php.ini file.