I want to execute a command, have the output of that command get gzip\'d on the fly, and also echo/tee out the output of that command.
i.e., something like:
Just to post a way that doesn't involve touching disk:
echo "hey hey, we're the monkees" | (exec 1>&3 && tee /proc/self/fd/3 | gzip --stdout > my_log.gz)