25761ce767
GNU watch runs a command repeatedly, displaying its output (the first screenfull). This allows one to watch the program output change over time. From Jasper Lievisse Adriaanse <jasper@nedbsd.nl>
79 lines
2.2 KiB
Plaintext
79 lines
2.2 KiB
Plaintext
$OpenBSD: patch-watch_1,v 1.1.1.1 2006/01/28 11:04:08 alek Exp $
|
|
--- watch.1.orig Sun Feb 9 08:05:25 2003
|
|
+++ watch.1 Sun Jan 1 13:28:37 2006
|
|
@@ -1,11 +1,11 @@
|
|
-.TH WATCH 1 "1999 Apr 3" " " "Linux User's Manual"
|
|
+.TH GNUWATCH 1 "1999 Apr 3" " " "Linux User's Manual"
|
|
.SH NAME
|
|
-watch \- execute a program periodically, showing output fullscreen
|
|
+gnuwatch \- execute a program periodically, showing output fullscreen
|
|
.SH SYNOPSIS
|
|
-.B watch
|
|
+.B gnuwatch
|
|
.I [\-dhvt] [\-n <seconds>] [\-\-differences[=cumulative]] [\-\-help] [\-\-interval=<seconds>] [\-\-no\-title] [\-\-version] <command>
|
|
.SH DESCRIPTION
|
|
-.BR watch
|
|
+.BR gnuwatch
|
|
runs
|
|
.I command
|
|
repeatedly, displaying its output (the first screenfull). This allows you to
|
|
@@ -30,7 +30,7 @@ or
|
|
option turns off the header showing the interval, command, and current
|
|
time at the top of the display, as well as the following blank line.
|
|
.PP
|
|
-.BR watch
|
|
+.BR gnuwatch
|
|
will run until interrupted.
|
|
.SH NOTE
|
|
Note that
|
|
@@ -42,33 +42,33 @@ Note that POSIX option processing is use
|
|
the first non-option argument). This means that flags after
|
|
.I command
|
|
don't get interpreted by
|
|
-.BR watch
|
|
+.BR gnuwatch
|
|
itself.
|
|
.SH EXAMPLES
|
|
.PP
|
|
To watch for mail, you might do
|
|
.IP
|
|
-watch \-n 60 from
|
|
+gnuwatch \-n 60 from
|
|
.PP
|
|
To watch the contents of a directory change, you could use
|
|
.IP
|
|
-watch \-d ls \-l
|
|
+gnuwatch \-d ls \-l
|
|
.PP
|
|
If you're only interested in files owned by user joe, you might use
|
|
.IP
|
|
-watch \-d 'ls \-l | fgrep joe'
|
|
+gnuwatch \-d 'ls \-l | fgrep joe'
|
|
.PP
|
|
To see the effects of quoting, try these out
|
|
.IP
|
|
-watch echo $$
|
|
+gnuwatch echo $$
|
|
.IP
|
|
-watch echo '$$'
|
|
+gnuwatch echo '$$'
|
|
.IP
|
|
-watch echo "'"'$$'"'"
|
|
+gnuwatch echo "'"'$$'"'"
|
|
.PP
|
|
You can watch for your administrator to install the latest kernel with
|
|
.IP
|
|
-watch uname -r
|
|
+gnuwatch uname -r
|
|
.PP
|
|
(Just kidding.)
|
|
.SH BUGS
|
|
@@ -84,4 +84,6 @@ The original
|
|
.B watch
|
|
was written by Tony Rems <rembo@unisoft.com> in 1991, with mods and
|
|
corrections by Francois Pinard. It was reworked and new features added by
|
|
-Mike Coleman <mkc@acm.org> in 1999.
|
|
+Mike Coleman <mkc@acm.org> in 1999. In 2005 it was modified for FreeBSD by
|
|
+Emanuel Haupt <ehaupt@critical.ch> and renamed gnuwatch by
|
|
+Jasper Lievisse Adriaanse <jasper@nedbsd.nl> for OpenBSD.
|