.\" Copyright (c) 2020 Joost van Baal-Ilić .TH "dr_watch" 1 "15 дец 2020" "dr_watch 20201215" "USER COMMANDS " .po 2m .de ZI .\" Zoem Indent/Itemize macro I. .br 'in +\\$1 .nr xa 0 .nr xa -\\$1 .nr xb \\$1 .nr xb -\\w'\\$2' \h'|\\n(xau'\\$2\h'\\n(xbu'\\ .. .de ZJ .br .\" Zoem Indent/Itemize macro II. 'in +\\$1 'in +\\$2 .nr xa 0 .nr xa -\\$2 .nr xa -\\w'\\$3' .nr xb \\$2 \h'|\\n(xau'\\$3\h'\\n(xbu'\\ .. .if n .ll -2m .am SH .ie n .in 4m .el .in 8m .. .SH NAME dr_watch \- execute a program periodically, showing output fullscreen .SH SYNOPSIS dr_watch command .SH 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\&. .SH 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\&. .SH COPYRIGHT AND LICENSE This manpage is copyright 2009, 2011, 2012, 2018 Joost van Baal-Ilić \&. 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/\&. .SH AUTHOR Joost van Baal-Ilić