Cron reports, even though I don't want them!
I'm a bit puzzled, I have this in my /etc/sysconfig/cron: SYSLOG_ON_NO_ERROR="no" SEND_MAIL_ON_NO_ERROR="no" My "problematic" script is updating my AV, the cron script is this: 49 */2 * * * root /opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null Still, I get a mail from each and every update, successful or not. If I run '/opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null' manually, I don't get any output whatsoever to the screen, so what's going on here? -- Anders Norrbring Norrbring Consulting
On Friday 27 October 2006 21:04, Anders Norrbring wrote:
I'm a bit puzzled, I have this in my /etc/sysconfig/cron: SYSLOG_ON_NO_ERROR="no" SEND_MAIL_ON_NO_ERROR="no"
My "problematic" script is updating my AV, the cron script is this: 49 */2 * * * root /opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null
Still, I get a mail from each and every update, successful or not. If I run '/opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null' manually, I don't get any output whatsoever to the screen, so what's going on here?
I don't know, but if you want to simplify it, 2>&1 >/dev/null can be shortened to &> /dev/null
On Friday 27 October 2006 11:04, Anders Norrbring wrote:
I'm a bit puzzled, I have this in my /etc/sysconfig/cron: SYSLOG_ON_NO_ERROR="no" SEND_MAIL_ON_NO_ERROR="no"
My "problematic" script is updating my AV, the cron script is this: 49 */2 * * * root /opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null
Still, I get a mail from each and every update, successful or not. If I run '/opt/eset/nod32/sbin/nod32_update 2>&1 > /dev/null' manually, I don't get any output whatsoever to the screen, so what's going on here?
Just prior to this entry in your crontab but a line that says MAILTO ' ' WITH A SPACE between the quotes. Any that you DO want mail from put above that mailto entry. This just started happening to me as well since 10.1. Previously no mailto meant no mail. -- _____________________________________ John Andersen
participants (3)
-
Anders Johansson
-
Anders Norrbring
-
John Andersen