diff options
author | dd <dd@FreeBSD.org> | 2001-11-24 15:51:34 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-11-24 15:51:34 +0000 |
commit | 65ce48703377a0df80064004e290fe94597973fb (patch) | |
tree | 1d6bc27bcd195f0f5d278f2a3cafd570292d78d4 | |
parent | 91fc5ccdb5892fe64f31ed8703e562019b47227d (diff) | |
download | FreeBSD-src-65ce48703377a0df80064004e290fe94597973fb.zip FreeBSD-src-65ce48703377a0df80064004e290fe94597973fb.tar.gz |
Remove the sentence about only root being able to run watch(8). It
was never technically true (it's snp(4) that required root, not
watch(8)), and after snp.c 1.64, isn't even effectively true, since
who can run watch(8) depends on the permissions of the snp device(s).
Sort options in SYNOPSIS and DESCRIPTION while I'm here.
-rw-r--r-- | usr.sbin/watch/watch.8 | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/usr.sbin/watch/watch.8 b/usr.sbin/watch/watch.8 index 4b75dd5..02208de 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 , |