15 дец 2020
dr_watch
20201215
NAME
dr_watch — execute a program periodically, showing output fullscreen
SYNOPSIS
dr_watch command
DESCRIPTION
dr_watch behaves like watch(1): it runs command repeatedly, displaying its
output. By defaults, it executes "sleep 2" before it refreshes the program's
output: it behaves as watch. However, unlike watch, it supports refreshing the
screen when some external command, passed in the DR_SLEEP_CMD environment
variable, exits.
If DR_NICE_WATCH is set to "false", it tests wether watch(1) is available on
the system and runs it if found.
ENVIRONMENT
dr_watch honors integer DR_SLEEP: number of seconds to wait between execution;
DR_SLEEP_CMD: e.g. 'sleep 5' or 'mpc idle'; and DR_NICE_WATCH: set this to
"false" if you prefer traditional watch over our reimplementation.
COPYRIGHT AND LICENSE
This manpage is copyright 2009, 2011, 2012, 2018 Joost van Baal-Ilić <joostvb-draai@mdcc.cx>.
Draai is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License, as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version. This program is distributed WITHOUT ANY WARRANTY. You should have
received a copy of the GNU General Public License along with draai. If not,
see http://www.gnu.org/licenses/.
AUTHOR
Joost van Baal-Ilić <joostvb-draai@mdcc.cx>