2

crontab 执行时间不正确

 1 year ago
source link: https://www.v2ex.com/t/845318
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Linux

crontab 执行时间不正确

  acbot · 8 小时 40 分钟前 · 372 次点击

在 OpenWRT 和 Centos 两个系统中配置 crontab 任务如下

00 8-23/5 * * * command (使用 curl 下载一个文件)

以前在两个系统上定时任务都正常,最近不知道是什么原因 command (使用 curl 下载一个文件)执行后下载文件的时间不对了,OpneWRT 下载文件时间是 17 点,CentOS 下载文件在 18 点以前,而看 Centos 的 Cron 日志脚本执行的时间又是对的 18 点。不知道是什么原因


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK