php - Cron Job in Laravel -


this question has answer here:

i trying develop cron job command have created. new cron jobs dont know how works.

trying command myself in console works perfectly. need able execute every 24 hours. using laravel 4, can help?

thanks!

to create cron job root, edit cron file:

[sudo] crontab -e 

add new line @ end, every line cron job:

25 10 * * * php /var/www/<sitename>/artisan <command:name> <parameters> 

this execute same command @ 10:25am everyday.

just make sure keep blank line after last one. , might need use full path of php client:

25 10 * * * /usr/local/bin/php /var/www/<sitename>/artisan <command:name> <parameters> 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -