1CHRONIC(1)                                                          CHRONIC(1)
2
3
4

NAME

6       chronic - runs a command quietly unless it fails
7

SYNOPSIS

9       chronic COMMAND...
10

DESCRIPTION

12       chronic runs a command, and arranges for its standard out and standard
13       error to only be displayed if the command fails (exits nonzero or
14       crashes).  If the command succeeds, any extraneous output will be
15       hidden.
16
17       A common use for chronic is for running a cron job. Rather than trying
18       to keep the command quiet, and having to deal with mails containing
19       accidental output when it succeeds, and not verbose enough output when
20       it fails, you can just run it verbosely always, and use chronic to hide
21       the successful output.
22
23               0 1 * * * chronic backup # instead of backup >/dev/null 2>&1
24

AUTHOR

26       Copyright 2010 by Joey Hess <id@joeyh.name>
27
28       Original concept and "chronic" name by Chuck Houpt.
29
30       Licensed under the GNU GPL version 2 or higher.
31
32
33
34moreutils                         2015-07-13                        CHRONIC(1)
Impressum