这是什么在我的 /var/sys/syslog

hlk*_*900 1 syslog

Oct  1 13:17:01 tilaprimera /USR/SBIN/CRON[5710]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Run Code Online (Sandbox Code Playgroud)

Nep*_*nte 6

有一个名为的后台任务调度cron程序在特定时间运行任务。

您在syslog其中看到的日志条目是运行其每小时任务的 cron 守护程序。

run-parts是在目录中运行可执行文件的实用程序。因此

run-parts --report /etc/cron.hourly
Run Code Online (Sandbox Code Playgroud)

运行目录中的所有可执行文件 /etc/cron.hourly

看看/etc/crontab。有一个条目

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
Run Code Online (Sandbox Code Playgroud)

告诉在每小时 17 分钟后运行有问题的命令。

欲了解更多详细信息,请参阅的手册页run-partscrontab