在cakephp中运行cron作业 [英] Run a cron job in cakephp

查看:134
本文介绍了在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的书中关于这个问题的链接: http://book.cakephp.org/2.0/en/console-and-shells/cron-jobs.html

Link from CakePHP's book on this issue: http://book.cakephp.org/2.0/en/console-and-shells/cron-jobs.html

(旧版本的文档): http:// book.cakephp.org/view/1110/Running-Shells-as-cronjobs

这篇关于在cakephp中运行cron作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆