upvote
Could you use preexec + tee?
reply