在cakephp中运行cron作业

编程入门 行业动态 更新时间:2024-10-24 10:26:28
本文介绍了在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作业

本文发布于:2023-11-24 03:34:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623826.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   cakephp   cron

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!