[英]Run Cron Job Every 15 Minutes in specific time and every day
I'am trying using cron job and want to run every day and every minutes from 07.00 AM until 07.00 PM i try this : 我正在尝试使用cron作业,并且想每天从07.00 AM到07.00 PM运行,我尝试这样做:
*/15 7-19 * * * /usr/local/bin/php /home/username/public_html/path/file.php
i got error like this : 我有这样的错误:
"-":3: bad command
errors in crontab file, can't install.
just fetting error, please help me. 只是觉得错误,请帮助我。
You never posted your system details: uname -sr
您从未发布过系统详细信息: uname -sr
Cron on some systems does not allow /
and -
construct. 在某些系统上,Cron不允许/
和-
构造。 Remove existing and create below entry:- 删除现有的并创建以下条目:-
15 7,8,10,11,12,13,14,15,16,17,18,19 * * * /usr/local/bin/php /home/username/public_html/path/file.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.