Re: cron jobs overly verbose
jjs - mainphrame <[email protected]>
| Newsgroups | gmane.mail.virus.maiamailguard |
|---|---|
| Message-ID | <CABkzw7yYde7A-isj3fh1+8qn9ikKYVXMu+D2OuzOw8qRGhp5JQ@mail.gmail.com> |
He did mention that he didn't want to miss error messages. '> /dev/null' would mute stdout but not stderr '>/dev/null 2>&1' would mute both stdout and stderr At least on Linux, this also mutes both: '&> /dev/null' On Tue, Aug 11, 2015 at 12:14 PM, David Newman <[email protected]> wrote: > > > On 8/11/15 12:12 PM, David Newman wrote: > > On 8/11/15 10:06 AM, Marc Fournier wrote: > >> > >> how are ppl setting up their cron jobs? Getting one of these a day is > annoying: > >> > >> 2015-08-04 03:00:00 Maia: [stats-snapshot] Updating stats history table. > >> > >> But, there doesn’t appear to be a way to turn that off *without* > turning off any error messages that might also be generated … > > > > You can silence STDOUT and STDERR messages from cron jobs. The syntax > > differs per operating system. On FreeBSD, something like this at the end > > of the cron command will work: > > > >> /dev/null 2>&1 > > Sorry, Thunderbird treated the redirect as a quote. Do this, without the > quote marks, at the end of a cron command in FreeBSD to silence output: > > '> /dev/null 2>&1' > > dn > > > > > But, per your comment below, if there's a problem with a cron job, you > > probably want to know about it. > > > >> > >> Or getting something like: > >> > >> Argument "2.49_01" isn't numeric in numeric ge (>=) at > /usr/local/lib/perl5/site_perl/mach/5.20/forks.pm line 1570. > >> > >> Not a bug / problem … > > > > It is a known bug in the perl forks.pm module, and a problem in that it > > causes the process-quarantine.pl script to terminate. > > > > I posted a patch on this mailing list a few days ago: > > > > > http://www.renaissoft.com/cgi-bin/mailman/private/maia-users/2015-August/016668.html > > > > dn > > > >> > >> I want to know if there is a problem, but I only want those kind of > email’s … not the ‘its running great’ messages … > >> > >> Anyone? > >> _______________________________________________ > >> Maia-users mailing list > >> [email protected] > >> http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users > >> > > _______________________________________________ > > Maia-users mailing list > > [email protected] > > http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users > > > _______________________________________________ > Maia-users mailing list > [email protected] > http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users > _______________________________________________ Maia-users mailing list [email protected] http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users