Php 在我的克朗糟糕的时刻
这是我第一次使用cron。我遵循了cron格式,但为什么它给了我一个糟糕的小时错误呢 下面是我的cron任务Php 在我的克朗糟糕的时刻,php,cron,crontab,cron-task,Php,Cron,Crontab,Cron Task,这是我第一次使用cron。我遵循了cron格式,但为什么它给了我一个糟糕的小时错误呢 下面是我的cron任务(mycron.txt): 我想要的是从每天下午12点到午夜每15分钟运行一次php脚本 我正在运行我的croncrontab mycron.txt 谢谢,Cron表达式最好是: 每15分钟从午夜运行到中午12点: */15 00-12 * * * (或) 每15分钟从中午12点到午夜 */15 00,12-23 * * * 理想情况下,Cron表达式应为: 每15分钟从午夜运行到
(mycron.txt)
:
我想要的是从每天下午12点到午夜每15分钟运行一次php脚本
我正在运行我的croncrontab mycron.txt
谢谢,Cron表达式最好是:
*/15 00-12 * * *
*/15 00,12-23 * * *
理想情况下,Cron表达式应为:
*/15 00-12 * * *
*/15 00,12-23 * * *
理想情况下,Cron表达式应为:
*/15 00-12 * * *
*/15 00,12-23 * * *
理想情况下,Cron表达式应为:
*/15 00-12 * * *
*/15 00,12-23 * * *
从12:00开始到00:00,以下crontab将每15分钟运行一次,但不包括00:00
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但包括00:00。为此,你需要两条线
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
0 00 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但不包括00:00
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但包括00:00。为此,你需要两条线
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
0 00 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但不包括00:00
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但包括00:00。为此,你需要两条线
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
0 00 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但不包括00:00
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
从12:00开始到00:00,以下crontab将每15分钟运行一次,但包括00:00。为此,你需要两条线
# Example of job definition:
# .-------------------- minute (0 - 59)
# | .--------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
*/15 12-23 * * * command
0 00 * * * command
try
*/15 00-12***php mycommand.php
您也可以使用try*/15 00-12***php mycommand.php
您也可以使用try*/15 00-12***php mycommand.php
您也可以使用try*/15 00-12***php mycommand.php
您也可以使用