cron job e-mail
Gerald Combs
gerald at ethereal.com
Sat Jun 29 17:03:45 CDT 2002
On Fri, 28 Jun 2002, Michael wrote:
> You can also set your MAILTO variable to null in your crontab and it'll
> stop all email output.
...but if your script is spitting out errors, don't you want to see them?
I usually direct stdout and stderr for cron entries to a log file.
> The girl who stoops to conquer usually wears a low-cut dress.
>
> ;):):-):):-):):-)8')
> Michael McGlothlin <mogmios at mlug.missouri.edu>
> http://kavlon.org/projects/
>
> On Fri, 28 Jun 2002, Don Erickson wrote:
>
> > In article <20020628162532.3490.qmail at web13106.mail.yahoo.com> you write:
> > >Okay... silly question... How can I tell a cronjob to
> > >quit e-mailing everytime it runs.
> >
> > My understanding is, the cron job only emails stdout or sterr output to
> > the owner. To disable this, redirect any such output to /dev/null, like
> > this:
> >
> > * * * * * fred /usr/bin/annoying_cron_job > /dev/null 2>&1
> > ^^^^^^^^^^^^^^^^
> > This is the part to append to the line.
> >
> >
> > Regards,
> >
> > -Don
> >
> >
> >
>
>
>
>
More information about the Kclug
mailing list