summaryrefslogtreecommitdiff
path: root/usr.sbin/watch
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-11-24 15:51:34 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-11-24 15:51:34 +0000
commit3278021b9458da12647e22c16568204ffaf098e1 (patch)
tree1d6bc27bcd195f0f5d278f2a3cafd570292d78d4 /usr.sbin/watch
parent1995d3a484f328a35b5583579882fa02663e778c (diff)
downloadsrc-test2-3278021b9458da12647e22c16568204ffaf098e1.tar.gz
src-test2-3278021b9458da12647e22c16568204ffaf098e1.zip
Notes
Diffstat (limited to 'usr.sbin/watch')
-rw-r--r--usr.sbin/watch/watch.824
1 files changed, 10 insertions, 14 deletions
diff --git a/usr.sbin/watch/watch.8 b/usr.sbin/watch/watch.8
index 4b75dd504e70..02208de06e26 100644
--- a/usr.sbin/watch/watch.8
+++ b/usr.sbin/watch/watch.8
@@ -10,10 +10,9 @@
.Nd snoop on another tty line
.Sh SYNOPSIS
.Nm
-.Op Fl ciotnW
+.Op Fl cinotW
.Op Fl f Ar snpdev
.Op Ar tty
-.\" watch [-ciotnW] [<tty name>]
.Sh DESCRIPTION
.Nm Watch
allows the superuser to examine all data coming through a specified tty.
@@ -50,6 +49,15 @@ Interactive mode is a default if
is started from a tty.
If output is redirected to a file, interactive mode can still be requested
by specifying this option.
+.It Fl n
+Disable the ability to switch the watched tty interactively. This disables
+both change requests made with <control-X> as well as automatic prompting
+when the current tty is closed or overflows. In all cases where a prompt
+would be displayed,
+.Nm
+will exit. The reconnect flags are unaffected by
+this option.
+When this flag is used, <control-X> is passed through to the terminal.
.It Fl o
Reconnect on overflow.
The behavior of
@@ -60,15 +68,6 @@ For more info see
.Xr snp 4 .
.It Fl t
Print the date and time when observation of a given tty is started.
-.It Fl n
-Disable the ability to switch the watched tty interactively. This disables
-both change requests made with <control-X> as well as automatic prompting
-when the current tty is closed or overflows. In all cases where a prompt
-would be displayed,
-.Nm
-will exit. The reconnect flags are unaffected by
-this option.
-When this flag is used, <control-X> is passed through to the terminal.
.It Fl W
Allow write access to observed tty.
.It Ar tty
@@ -90,9 +89,6 @@ Clear screen.
Change attached tty, unless this feature is disabled, in which case
control-X is passed to the terminal as with other control characters.
.El
-.Sh RESTRICTIONS
-Only the superuser can run
-.Nm .
.Sh SEE ALSO
.Xr pty 4 ,
.Xr sio 4 ,