CronD 忽略命令并每小时运行一次

CronD 忽略命令并每小时运行一次

在 Centos7 上使用 Cron 时出现问题,它似乎正在运行我的命令

5 * * * * root curl http://www.(removed)/Ebay/GetOrders.php

每小时(而不是每 5 分钟)我设置一些日志:

Jan 12 14:05:01 (removed)-http CROND[25392]: (root) CMD (curl http://www.   (removed)(removed)/Ebay/GetOrders.php)
Jan 12 14:05:01 (removed)-http CROND[25393]: (root) CMD (root curl http://www.(removed)(removed)/Ebay/GetOrders.php)
Jan 12 15:01:01 (removed)-http CROND[12453]: (root) CMD (run-parts /etc/cron.hourly)
Jan 12 15:01:01 (removed)-http run-parts(/etc/cron.hourly)[12453]: starting 0anacron
Jan 12 15:01:01 (removed)-http run-parts(/etc/cron.hourly)[12462]: finished 0anacron
Jan 12 15:01:01 (removed)-http run-parts(/etc/cron.hourly)[12453]: starting 0yum-hourly.cron
Jan 12 15:01:01 (removed)-http run-parts(/etc/cron.hourly)[12468]: finished 0yum-hourly.cron
Jan 12 15:05:01 (removed)-http CROND[13880]: (root) CMD (curl http://www.(removed)(removed)/Ebay/GetOrders.php)
Jan 12 15:05:01 (removed)-http CROND[13881]: (root) CMD (root curl http://www.(removed)(removed)/Ebay/GetOrders.php)
Jan 12 15:26:25 (removed)-http crontab[21340]: (root) LIST (root)
Jan 12 15:39:08 (removed)-http crontab[25757]: (root) LIST (root)
Jan 12 15:39:26 (removed)-http crond[3275]: (CRON) INFO (Shutting down)
Jan 12 15:39:26 (removed)-http crond[25906]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 20% if used.)
Jan 12 15:39:26 (removed)-http crond[25906]: (CRON) INFO (running with inotify support)
Jan 12 15:39:26 (removed)-http crond[25906]: (CRON) INFO (@reboot jobs will be run at computer's startup.)

答案1

5 * * * * root curl http://www.(removed)/Ebay/GetOrders.php

您将其配置为每小时运行一次,即在整点后的五分钟运行。

你想要的是:

*/5 * * * * root curl http://www.(removed)/Ebay/GetOrders.php

相关内容