On 3 Jan 1999, Russ Allbery wrote:
>
> Paul Gregg <[EMAIL PROTECTED]> writes:
> 
> > But cron only emails any output sent to stdout.  So ensure none happens
> > and tack on |/var/qmail/bin/qmail-inject [EMAIL PROTECTED]
> > to the end of the cron line.
> 
[...]
> 
> And that should be 2>&1 |/var/qmail/bin/qmail-inject, I believe.

Except that that will result in a blank email if there is no output.  I
had to kludge a broken cron implementation so I wrote a quick script
that only sends email if there is any output.  See cronoutput at:

   http://www.foogrill.com/scripts.html

I've only tested it for a short time so YMMV.

Cheers,
Vern
-- 
         ,+'^'+,
Vern Hart  O  Creative Design Engineer - The Hungry Programmers
       `+,.,+'           [EMAIL PROTECTED]  http://www.hungry.org

 10:43pm up 22 day(s), 12:52, 16 users, load average: 0.07, 0.12, 0.14 

Reply via email to