2 .\" $FreeBSD: src/usr.sbin/watch/watch.8,v 1.18.2.4 2003/03/11 22:31:34 trhodes Exp $
9 .Nd snoop on another tty line
18 utility allows the user to examine all data coming through a specified tty
24 device is not available,
26 will attempt to load the module
30 utility writes to standard output.
32 The options are as follows:
33 .Bl -tag -width indent
35 Reconnect on close. If the tty observed by
37 is closed, automatically reattach to the same tty.
38 If this option is not specified,
40 will request a new tty if running in interactive mode or exit if running
41 without a controlling tty.
43 If this option is specified,
52 will attempt to find the next available
56 Force interactive mode.
57 Interactive mode is a default if
59 is started from a tty.
60 If output is redirected to a file, interactive mode can still be requested
61 by specifying this option.
63 Disable the ability to switch the watched tty interactively. This disables
64 both change requests made with <control-X> as well as automatic prompting
65 when the current tty is closed or overflows. In all cases where a prompt
68 will exit. The reconnect flags are unaffected by
70 When this flag is used, <control-X> is passed through to the terminal.
72 Reconnect on overflow.
75 if the observed tty overflows is similar to the behavior if the observed tty
80 Print the date and time when observation of a given tty is started.
82 Allow write access to observed tty.
84 Tty may be specified as a tty-style device, such as a pseudo tty device,
85 a virtual console, or a serial line, etc.
86 Names may be preceded by
90 While running in interactive mode, all user input is discarded except for:
92 .Bl -tag -width "XXXX" -compact
99 Change attached tty, unless this feature is disabled, in which case
100 control-X is passed to the terminal as with other control characters.
110 utility first appeared in
113 .An Ugen J.S. Antsilevich Aq Mt ugen@NetVision.net.il
115 No terminal emulation is performed.
116 All user output is reproduced as-is.