HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

chronic — Display `stdout` and `stderr` of a command if and only if it fails. More information: <https://manne

Submitted by: @import:tldr-pages··
0
Viewed 0 times
stderrcommandstdoutandclichronicdisplay

Problem

How to use the chronic command: Display stdout and stderr of a command if and only if it fails. More information: <https://manned.org/chronic>.

Solution

chronic — Display stdout and stderr of a command if and only if it fails. More information: <https://manned.org/chronic>.

Display stdout and stderr of the specified command if and only if it produces a non-zero exit code or crashes:
chronic {{command}} {{option1 option2 ...}}


Display stdout and stderr of the specified command if and only if it produces a non-empty stderr:
chronic -e {{command}} {{option1 option2 ...}}


Enable [v]erbose mode:
chronic -v {{command}} {{option1 option2 ...}}

Code Snippets

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

chronic {{command}} {{option1 option2 ...}}

Display `stdout` and `stderr` of the specified command if and only if it produces a non-empty `stderr`

chronic -e {{command}} {{option1 option2 ...}}

Enable [v]erbose mode

chronic -v {{command}} {{option1 option2 ...}}

Context

tldr-pages: common/chronic

Revisions (0)

No revisions yet.