php - Why does the codeigniter cron not working -


i trying set cronjob in codeigniter on localhost when run same path terminal works

this path have run cli(terminal):

/usr/bin/php /home/user_name/path_to_index.php users foo 

this works

but when set in crontab file :

 3 * * * *  /usr/bin/php /home/user_name/path_to_index.php users foo 

this not working.

any idea wrong here?

thanks in advance!

try

/usr/bin/curl http://examblewebsite/index.php/front/cronjob 

front - controller name

cronjob - function name

in localhost

0 13 * * * php [application_path]/index.php cli/reminders 

if have more details see link


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -