LinuxCommandLibrary

chronic

Display `stdout` and `stderr` of a command if and only if it fails.

TLDR

Display stdout and stderr of the specified command if and only if it produces a non-zero exit code or crashes

$ chronic [command options ...]
copy


Display stdout and stderr of the specified command if and only if it produces a non-empty stderr
$ chronic -e [command options ...]
copy


Enable [v]erbose mode
$ chronic -v [command options ...]
copy

Copied to clipboard