]> granicus.if.org Git - procps-ng/commit
watch: Add --equexit option
authorOrhun Parmaksız <orhunparmaksiz@gmail.com>
Thu, 31 Mar 2022 19:36:57 +0000 (22:36 +0300)
committerCraig Small <csmall@dropbear.xyz>
Wed, 18 May 2022 11:40:25 +0000 (11:40 +0000)
commit3ac20bf5366b5784d8ee4b1f927e96f4dd164f28
tree958100f5413103b387821e90b0dc93160f970a4b
parent3f48e8bdfca3a2e4dfcfa5c03e11381a3c89002d
watch: Add --equexit option

This commit adds a new option called `--equexit` which is the opposite
of `--chgexit`. This option makes it possible to exit when the output
of the given command does not change for the given number of cycles.
A download operation could be given as a use-case since `watch` will
exit when the output does not change anymore, in other words, when
the download is completed.

References:
 procps-ng/procps#232

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
watch.1
watch.c