Bug 220 - Some cron jobs generate "No message, no subject; hope that's ok"
Some cron jobs generate "No message, no subject; hope that's ok"
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: crontabs (Show other bugs)
5.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-11-28 20:00 EST by Marc MERLIN
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-04-10 18:02:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marc MERLIN 1998-11-28 20:00:37 EST
This is an old bug forwarded to your new bug tracking system

Logrotate will sometimes send empty mails when it rotates
logfile on a time basis (when one of the files rotated is
empty, and logrotate is configured to mail the logfile that
is going to be erased)

There are other cron jobs that can generate empty mails
sometimes (I haven't bothered to track them down, but I know
they exist).

I think it'd be a good idea to modify /etc/crontab as
such:
#
run-parts
02 * * * * root run-parts /etc/cron.hourly | grep -v "Null
message body; hope that's
ok"
07 1 * * * root run-parts /etc/cron.daily | grep -v "Null
message body; hope that's
ok"
12 2 * * 0 root run-parts /etc/cron.weekly | grep -v "Null
message body; hope that's
ok"
17 3 1 * * root run-parts /etc/cron.monthly | grep -v "Null
message body; hope that's ok
Comment 1 Cristian Gafton 1998-12-10 18:46:59 EST
Altough sometimes thos emessages can be annoying, som people count on
mail from cron to see if a job completed. We can not arbitrarily
filter cron mails by default, that falls under the responsabiliries of
the system administrator.

Note You need to log in before you can comment on or make changes to this bug.