Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
threePointFive
· 1y ago · 0 comments
Moreutils has a great command `chronic` which is a wrapper command like `time` or `sudo`, ie. you just run `chronic <command>`. It'll supress stdout and stderr until the command exits at which point it will print only if the exit code was non-zero.
Comments
[–]
stevekemp
1y ago
I copied the same idea in my static collection of sysadmin utilities:
https://github.com/skx/sysbox/