Re: cron jobs without mailing
On Sunday 26 September 2004 04:35 pm, Patrick Wiseman wrote:
> On Sun, 26 Sep 2004 12:20:56 -0700, Stefan O'Rear <stefanor@cox.net> wrote:
> > On Sun, Sep 26, 2004 at 09:02:33PM +0200, Otto Wyss wrote:
> > > To update my webpages from CVS I use a crontab with some jobs. But
> > > every time the jobs are executed at sourceforge.net I get a mail. This
> > > seems to be the default behaviour. Is there a possibility to disable
> > > this mailing?
> >
> > IIRC cron only mails when there is output.
> >
> > Put '>/dev/null 2>&1' at the end of the command in your sf.net crontab.
>
> You can disable all cron mail by setting 'MAILTO=""' in your crontab.
> See 'man 5 crontab' for details.
And I think... Hrm...
I remember there was something you could put in front of the line to make a
task silent. I can't find it in man 5 crontab or info crontab, and when I
check the [x] Silent box in KCron, it's unable to install the crontab because
of whatever character it's putting in there. So maybe that thing I remember
was a Red Hatism.
--
Michael McIntyre ---- Silvan <dmmcintyr@users.sourceforge.net>
Linux fanatic, and certified Geek; registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/
http://rosegarden.sourceforge.net/tutorial/
Reply to: