Re: Preventing >empty< cron email messages...
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Mon, 29 Jan 2007 17:16:48 -0500
On 29 Jan 2007 10:50:18 -0800, Nedron
<usenet@xxxxxxxxxx> wrote:
2>&1 | grep -v '^$'
Is there a known mechanism for preventing empty email messages being
sent by cron jobs?
Basically, we have several cron jobs that always generate a message on
every run. The messages may or may not have content in the body. We
want messages with content to be sent, but empty messages to be /dev/
null'd.
Obviously, the usual "> /dev/null 2>&1" style or MAILTO directives
won't work, since we actually do want some messages to make it out of
the box for this job, but not the empty ones.
--
I can't understand why a person will take a year or two to write a
novel when he can easily buy one for a few dollars.
-- Fred Allen
.
- Follow-Ups:
- Re: Preventing >empty< cron email messages...
- From: Unruh
- Re: Preventing >empty< cron email messages...
- References:
- Preventing >empty< cron email messages...
- From: Nedron
- Preventing >empty< cron email messages...
- Prev by Date: Re: Click clues with Linux?
- Next by Date: Re: Top of printout is cut off
- Previous by thread: Re: Preventing >empty< cron email messages...
- Next by thread: Re: Preventing >empty< cron email messages...
- Index(es):
Relevant Pages
|