mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
Userland: Add watch tool
This commit is contained in:
parent
2e183e3292
commit
0fc8931d5f
2 changed files with 208 additions and 0 deletions
30
Base/usr/share/man/man1/watch.md
Normal file
30
Base/usr/share/man/man1/watch.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
## Name
|
||||
|
||||
watch - execute a program periodically
|
||||
|
||||
## Synopsis
|
||||
|
||||
`watch [-n interval] [-t] [-b] command`
|
||||
|
||||
## Description
|
||||
|
||||
Run a command full-screen periodically until interrupted, then return the
|
||||
aggregated error code.
|
||||
|
||||
## Options
|
||||
|
||||
* '-n': Interval between executions, in seconds. By default, the program is run every 2 seconds.
|
||||
* '-t': Don't print the title bar.
|
||||
* '-b': Beep each time the command exits with a non-zero status
|
||||
|
||||
## Exit Values
|
||||
|
||||
* 0 - Success
|
||||
* 1 - At least one invocation of the command failed or exited with a non-zero status
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ watch -n1 ls
|
||||
$ watch -t -- uname -a
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue