Getting an e-mail everyday from man2html's cron task is annoying. The following should replace the file /etc/cron.daily/man2html. I'm not bothering to submit a patch because the entire file is 4 lines long. The new cron task saves the output to a temp file and then cats the temp file if an error occurs. From: #!/bin/sh nice -n 19 /usr/bin/glimpseindex -f -z -H /var/man2html `man -w | tr : ' '` chmod 644 /var/man2html/.glimpse* To: #!/bin/sh nice -n 19 /usr/bin/glimpseindex -f -z -H /var/man2html `man -w | tr : ' '` 2>&1 > /tmp/man2html.$$ || cat /tmp/man2html.$$ rm -f /tmp/man2html.$$ chmod 644 /var/man2html/.glimpse*
reassigning to proper alias
Can't you simply redirect the output to /dev/null and voila, no more messages? Resolving as INVALID because this is completely up to the user to set up how s/he wants.
I respectfully disagree. Users should not have to fix problems left behind by developers. Cron programs should not spam users unless that is what they're designed to do (log filters, etc.). The original cron job spammed the user once a day, annoying a user enough until they finally track down the offending cron job and redirect it to NULL. And how is a user supposed to know that "glimpse" is in any way related to man2html without research? The cron output only mentions glimpse. The replacement script I gave in the original comment is the best of both worlds. It will perform completely silent unless an error occurs. If an error occurs, the user will get an e-mail with the full output of the cron job. Problem solved.
Ah, ok. Sorry, I guess I did not understand the problem well enough. Since this package doesn't have a mainainer, I'm thinking the best compromise would be to put your method in the file with a comment stating what it does. Would this be an acceptable solution for you? If this package did have a maintainer, then he or she would decide on what to do.
Sorry if I snapped a bit. I only posted it as a bug here because the package didn't have a maintainer and I was hoping that someone with more knowledge of the package system and commit privileges would apply my change. A comment at the top explaining it's function is an excellent idea.
We definitely value your contribution! =) I will put in your suggestion with a reference to this bug sometime soon here.
% cvs diff cvs diff: Diffing . Index: man2html.cron =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-text/man2html/files/man2html.cron,v retrieving revision 1.1 diff -r1.1 man2html.cron 3a4,13 > > # Below is submitted from another user. "It will perform completely silent > # unless an error occurs. If an error occurs, the user will get an e-mail with > # the full output of the cron job." > # See https://bugs.gentoo.org/show_bug.cgi?id=189582 for more information > > #nice -n 19 /usr/bin/glimpseindex -f -z -H /var/man2html `man -w | tr : ' '` > #2>&1 > /tmp/man2html.$$ || cat /tmp/man2html.$$ > #rm -f /tmp/man2html.$$ > #chmod 644 /var/man2html/.glimpse* Added your suggestion, I know it isn't ideal but it will have to work. I think it is the best compromise that we can agree to. At least if someone picks up maintainership of this package, s/he will know where to look and possible fix (and maintain) the default method. Thanks again.