Execute a program periodically
watch -b {beep} -c {color} -C {no-color} -d {differences} -e {errexit} ๐ beep ๐ color ๐ no-color ๐ differences ๐ errexit watch -b {beep} -c {color} -C {no-color} -d {differences} -e {errexit} Sandbox: execFile · Timeout: 30s
system.process.watch system.process.list system.process.signal system.process.monitor | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
beep | string | No | - | beep if command has a non-zero exit | -b, --beep |
color | string | No | - | interpret ANSI color and style sequences | -c, --color |
no-color | string | No | - | do not interpret ANSI color and style sequences | -C, --no-color |
differences | string | No | - | highlight changes between updates | -d, --differences |
errexit | string | No | - | exit if command has a non-zero exit | -e, --errexit |
chgexit | string | No | - | exit when output from command changes | -g, --chgexit |
equexit | string | No | - | exit when output from command does not change | -q, --equexit <cycles> |
interval | string | No | - | Set the interval parameter | -n, --interval <secs> |
precise | number | No | - | attempt run command in precise intervals | -p, --precise |
no-rerun | string | No | - | do not rerun program on window resize | -r, --no-rerun |
no-title | string | No | - | turn off header | -t, --no-title |
no-wrap | string | No | - | turn off line wrapping | -w, --no-wrap |
exec | string | No | - | pass command to exec instead of "sh -c" | -x, --exec |
help | string | No | - | display this help and exit | -h, --help |
version | string | No | - | Set the version parameter | -v, --version |
Basic usage with beep
watch ${beep} Display help message
watch --help watch is a command-line utility for execute a program periodically.
watch -b {beep} -c {color} -C {no-color} -d {differences} -e {errexit}