CHRONIC(1)
β¨ NAME β¨ β this is CHRONIC(1) from moreutils, bestie π
chronic β runs a command quietly unless it fails. periodt πβ¨
πΈ SYNOPSIS πΈ
chronic [-ev] COMMAND...
π DESCRIPTION π
chronic runs a command, and arranges for its standard out and standard error to only be displayed if the command fails β that means it exits nonzero or crashes ππ. If the command succeeds, any extraneous output will be hidden πβ¨.
A common use for chronic is running a cron job π. Instead of trying to keep the command quiet and dealing with mails containing accidental output when it succeeds, and not verbose enough output when it fails, you can just run it verbosely always and use chronic to hide the successful output. iykyk, itβs giving automation main character energy π
.
0 1 * * * chronic backup # instead of backup >/dev/null 2>&1
*/20 * * * * chronic -ve my_script # verbose for debugging
π OPTIONS π
-vβ Verbose output π¬: distinguishes betweenSTDOUTandSTDERR, and also reportsRETVAL. slay.-eβ Stderr triggering π: triggers output when stderr output length is non-zero. Without-e,chronicneeds a non-zero return value to trigger output. In this mode,chronicβs return value will be 2 if the commandβs return value is 0 but the command printed to stderr π.
π AUTHOR π
Copyright 2010 by Joey Hess <id@joeyh.name> π
Original concept and "chronic" name by Chuck Houpt. Code for verbose and stderr trigger by Tomas 'Harvie' Mudrunka 2016. π«Ά
Licensed under the GNU GPL version 2 or higher. π
okay thatβs the whole page, bestie β itβs from moreutils, dated 2025-06-30, and itβs the CHRONIC(1) manual page. slay and goodbye ππ«Άβ¨
π¦ where this page comes from
- alpine 3.24: moreutils-doc 0.70-r1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms