redirecting output in cron job not working

Les Mikesell lesmikesell at gmail.com
Wed May 7 04:00:59 UTC 2008


On Tue, May 6, 2008 at 7:04 AM, Mark Haney <mhaney at ercbroadband.org> wrote:
>
>  Honestly, I don't want any output sent via email /unless/ the script fails.
> That's what I don't get.  Why it was sending these emails in the first
> place, then not, now it is again.  I really don't want to log anything on a
> successful run of the script, since there should be nothing to report.  It's
> only on a failure that I want something logged.

Why send stderr to stdout then?   Normally you would discard stdout
>/dev/null and leave stderr alone so only error output will trigger
the email.

-- 
  Les Mikesell
    lesmikesell at gmail.com




More information about the fedora-list mailing list