chronic, which is part of
moreutils, is a great tool for selective failure-only email notification of cron tasks:
chronic runs a command, and arranges for its standard out and standard error to only be displayed if the command fails (exits nonzero or crashes). If the command succeeds, any extraneous output will be hidden.
I would like to use chronic, but with the addition of (always) appending the full stdout and stderr to a logfile.
How can I achieve this? (redirects/named pipes?)