Hacker News new | ask | show | jobs
by threePointFive 405 days ago
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.
1 comments

I copied the same idea in my static collection of sysadmin utilities:

https://github.com/skx/sysbox/