Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stirfish
· 1mo ago · 0 comments
Could you use preexec + tee?
Comments
[–]
ctippett
1mo ago
Unfortunately not, the preexec event happens asynchronously from the actual execution of the command. You can't manipulate or otherwise log the
output
of what's run, all you get is a copy of the command text.