本文介绍了在cakephp中运行cron作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想写一个cron作业,每天上午6点运行PHP脚本,每天上午11点,下午4点到下午4点。
I would like to write a cron job that has to run a PHP script at 6am, 11am,2pm,4pm on each day.
你能帮我吗有了这个?我在shell中写了一个shell任务,我想在前面的语句中说的时间运行这个任务。
Can you please help me with this? I wrote a shell task in shells and I want to run that task at the timings i said in the earlier statement.
谢谢。
推荐答案从CakePHP的书中关于这个问题的链接: book.cakephp/2.0/en/console-and-shells/cron-jobs.html
Link from CakePHP's book on this issue: book.cakephp/2.0/en/console-and-shells/cron-jobs.html
(旧版本的文档): http:// book.cakephp/view/1110/Running-Shells-as-cronjobs
更多推荐
在cakephp中运行cron作业
发布评论