- 论坛徽章:
- 0
|
各位好,
我有一台服務器是用 Slackware 10 的. 近多月來發現它的 cron 並沒有在特定時間內自動運行..
而crond 是啟動的. 並把需要運行的 script 放到 /etc/cron.daily 內.
並設為 59 23 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
而script 是沒有錯誤, 是可以手動運行的...
在 /var/log/cron 內發現這些
- Nov 19 06:10:56 aa crond[21699]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 19 10:05:06 aa crond[21791]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 19 11:05:07 aa crond[21817]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 19 18:10:56 aa crond[21974]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 19 20:05:06 aa crond[22020]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 19 23:50:06 aa crond[22118]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 00:04:56 aa crond[22126]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 06:10:56 aa crond[22303]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 10:05:06 aa crond[22395]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 11:05:06 aa crond[22422]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 18:10:56 aa crond[22656]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 20:05:06 aa crond[22706]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 20 23:50:06 aa crond[22804]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 21 00:04:56 aa crond[22812]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
- Nov 21 06:10:56 aa crond[22989]: unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
复制代码
由於之前服務器並不需要sendmail, 所以沒有裝sendmail, 但當我發現這錯誤後, 就把sendmail重裝上, 終於在昨天沒有再出現 Nov 22 號的訊息. 但 cron 並沒有在 22 號晚上 23時59分被運行.
請問我的情況應該怎去更正呢.
謝謝各位. |
|