在我的cron作业文件中,我定义了两个cron作业:
#Yo1 MAILTO="example@domain.com"
*1****wget -O - -q "http://example.com/cron/test1.php">/dev/null 2>&1
#Yo1 MAILTO="example@domain.com"
*15****wget -O - -q "http://example.com/cron/test2.php">/dev/null 2>&1PHP文件很简单,只需发送不同主题的邮件。
问题是,这两个cron作业每分钟都在同一时间运行,但正如您所看到的,我希望它们在不同的时间运行。第一-每分钟,第二-每15分钟。
你能帮我做这个吗。我不知道出了什么问题。
发布于 2016-11-10 13:02:00
* * * * * wget -O - -q "http://example.com/cron/test1.php">/dev/null 2>&1
15 * * * * wget -O - -q "http://example.com/cron/test2.php">/dev/null 2>&1https://stackoverflow.com/questions/40528103
复制相似问题