0

我对 cron 工作有疑问,

假设我是否想通过电子邮件发送 df 输出的副本每 5 分钟安排一次任务。

:~$crontab -e

5 * * * * df -h

该指南说它将通过电子邮件发送给 crontab 文件所属的用户(根据配置文件),我如何检查它是否通过了?

当我执行

:~$crontab -l

我可以看到我输入的计划任务。

或者,我有没有机会看到输出?

4

1 回答 1

0

If you want it to run every 5 minutes, the syntax is:

*/5 * * * * df -h

What you wrote will run it every hour at 5 minutes after the hour.

P.S. Questions like this are more appropriate for unix.stackexchange.com.

于 2013-10-29T06:13:33.127 回答