Red Hat Bugzilla – Bug 25223
up2date emails extraordinarily long
Last modified: 2015-01-07 18:42:56 EST
I'm using up2date-2.1.7-0.6.x on a fully patched RedHat 6.2 system. The
machine is registered anonymously because our Priority FTP access is
actually for a lab with about a 15 machines - more than the RHN will allow
me to register. I run the following cron job:
/usr/sbin/up2date -u --nosig
And it works beautifully except that the email up2date sends back to me (as
the administrator) contains every status line update as well as the
important stuff. On a run where up2date has actually downloaded and
installed some packages the email can be very large (several hundred KB).
Here is a very tiny snippet:
Retrieving list of all available packages...
Removing installed packages from list of updates...
There are no packages available for update.
Same problem occurs on Red Hat Linux 7.0 with a crontab entry like:
2 1 * * * /usr/sbin/up2date -u 2> /dev/null
The update info should be redirected to stderr instead of stdout for console
Unfortunately that doesn't work for me. Everything seems to be sent to stdout
with nothing going to stderr. If I redirect everything, I get no email. If I
redirect just stderr it's the same email as with no redirection at all. In any
case, it seems like up2date ought to do the correct thing without any special
processing on my part. It used to work that way before all the RHN stuff became
Sounds like you need a "--quiet" mode. We'll consider it
as a feature request for the next release.
a reasonable request.
*** Bug 23694 has been marked as a duplicate of this bug. ***
up2date should now detect if is running on a tty, and
if not, it doesnt print out all the percentage updating
stuff. Makes the log's much prettier.
I'll see about still adding a --quiet as well.
That new functionality sounds like what I want. Though, given this, I'm not sure what use a --quiet switch is. If you want nothing it's easy enough to
redirect everything to /dev/null. Or, if I remember right, you can tell up2date not to send any email. And the current behavior is fine if it's running on a
tty. So what am I missing?
Also I didn't see a new up2date RPM anywhere. I'd like to try this! :-) Is that forthcoming soon?
Assigned QA to jturner
*** This bug has been marked as a duplicate of 19646 ***
*** Bug 35614 has been marked as a duplicate of this bug. ***