6 ms·
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
by threePointFive 1y 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.
- stevekemp 1y agoI copied the same idea in my static collection of sysadmin utilities: https://github.com/skx/sysbox/ https://github.com/skx/sysbox/