Red Hat Bugzilla – Bug 24484
cannot redirect output of "up2date -l"
Last modified: 2007-04-18 12:30:48 EDT
While trying to create a nightly cron job to do "up2date -l | mail
root@localhost", I get a Python traceback indicating a "Broken Pipe"
Further testing shows that any kind of output redirection (such as "up2date
-l > foo") gives the same result.
I believe this to be a problem with the interaction between up2date and
consolehelper. I do not have the same problem when explicitly running
/usr/sbin/up2date, without the consolehelper wrapper.
To run from cron as root, use /usr/sbin/up2date, not /usr/bin/up2date, which is
the "run-as-a-user" wrapper program.