2 .\" $FreeBSD: src/usr.sbin/watch/watch.8,v 1.18.2.4 2003/03/11 22:31:34 trhodes Exp $
3 .\" $DragonFly: src/usr.sbin/watch/watch.8,v 1.2 2003/06/17 04:30:04 dillon Exp $
10 .Nd snoop on another tty line
19 utility allows the user to examine all data coming through a specified tty
25 device is not available,
27 will attempt to load the module
31 utility writes to standard output.
33 The options are as follows:
34 .Bl -tag -width indent
36 Reconnect on close. If the tty observed by
38 is closed, automatically reattach to the same tty.
39 If this option is not specified,
41 will request a new tty if running in interactive mode or exit if running
42 without a controlling tty.
44 If this option is specified,
53 will attempt to find the next available
57 Force interactive mode.
58 Interactive mode is a default if
60 is started from a tty.
61 If output is redirected to a file, interactive mode can still be requested
62 by specifying this option.
64 Disable the ability to switch the watched tty interactively. This disables
65 both change requests made with <control-X> as well as automatic prompting
66 when the current tty is closed or overflows. In all cases where a prompt
69 will exit. The reconnect flags are unaffected by
71 When this flag is used, <control-X> is passed through to the terminal.
73 Reconnect on overflow.
76 if the observed tty overflows is similar to the behavior if the observed tty
81 Print the date and time when observation of a given tty is started.
83 Allow write access to observed tty.
85 Tty may be specified as a tty-style device, such as a pseudo tty device,
86 a virtual console, or a serial line, etc.
87 Names may be preceded by
91 While running in interactive mode, all user input is discarded except for:
93 .Bl -tag -width "XXXX" -compact
100 Change attached tty, unless this feature is disabled, in which case
101 control-X is passed to the terminal as with other control characters.
109 No terminal emulation is performed.
110 All user output is reproduced as-is.
112 .An Ugen J.S. Antsilevich Aq ugen@NetVision.net.il
116 utility first appeared in