2019-03-24 16:59:46 +00:00
|
|
|
.TH CONSOLE 1 "@CONSERVER_DATE@" "conserver-@CONSERVER_VERSION@" "conserver"
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH NAME
|
|
|
|
console \- console server client program
|
|
|
|
.SH SYNOPSIS
|
2003-09-22 20:49:53 +00:00
|
|
|
.B console
|
2005-09-05 23:15:33 +00:00
|
|
|
.RI [ generic-args ]
|
2004-05-07 16:05:25 +00:00
|
|
|
.RB [ \-aAfFsS ]
|
2003-09-22 20:49:53 +00:00
|
|
|
.BR [ \-e
|
|
|
|
.IR esc ]
|
|
|
|
.I console
|
1998-12-18 23:12:55 +00:00
|
|
|
.br
|
2003-09-22 20:49:53 +00:00
|
|
|
.B console
|
2005-09-05 23:15:33 +00:00
|
|
|
.RI [ generic-args ]
|
|
|
|
.RB [ \-iIuwWx ]
|
|
|
|
.RI [ console ]
|
|
|
|
.br
|
|
|
|
.B console
|
|
|
|
.RI [ generic-args ]
|
|
|
|
.RB [ \-hPqQrRV ]
|
2003-09-22 20:49:53 +00:00
|
|
|
.RB [ \- [ bB ]
|
|
|
|
.IR message ]
|
2005-09-05 23:15:33 +00:00
|
|
|
.RB [ \-d
|
|
|
|
.RI [ user ][\f3@\fP console ]]
|
2003-09-22 20:49:53 +00:00
|
|
|
.RB [ \-t
|
2004-04-13 20:30:28 +00:00
|
|
|
.RI [ user ][\f3@\fP console ]
|
2003-09-22 20:49:53 +00:00
|
|
|
.IR message ]
|
2005-09-05 23:15:33 +00:00
|
|
|
.RB [ \- [ zZ ]
|
|
|
|
.IR cmd ]
|
|
|
|
.PP
|
|
|
|
.IR generic-args :
|
2020-10-18 00:07:01 +00:00
|
|
|
.RB [ \-7DEknUv ]
|
2004-05-07 16:05:25 +00:00
|
|
|
.RB [ \-c
|
|
|
|
.IR cred ]
|
2004-05-26 00:41:29 +00:00
|
|
|
.RB [ \-C
|
|
|
|
.IR config ]
|
2005-09-05 23:15:33 +00:00
|
|
|
.BR [ \-M
|
2004-05-26 00:41:29 +00:00
|
|
|
.IR master ]
|
2005-09-05 23:15:33 +00:00
|
|
|
.BR [ \-p
|
2003-09-22 20:49:53 +00:00
|
|
|
.IR port ]
|
2005-09-05 23:15:33 +00:00
|
|
|
.BR [ \-l
|
|
|
|
.IR user ]
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B Console
|
2001-07-27 00:05:04 +00:00
|
|
|
is used to manipulate console terminals remotely or to poll running
|
2003-09-22 20:49:53 +00:00
|
|
|
.BR conserver (8)
|
|
|
|
daemons for status information.
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
2001-07-27 00:05:04 +00:00
|
|
|
In the first form above,
|
|
|
|
.B console
|
|
|
|
asks the user's password before
|
|
|
|
granting interactive access to a console (on a non-trusted system),
|
1998-12-18 23:12:55 +00:00
|
|
|
since such a session may provide single-user access.
|
2004-07-14 23:21:13 +00:00
|
|
|
If the server's autocompletion feature is enabled,
|
|
|
|
only as much of the console name as is required to
|
2001-07-27 00:05:04 +00:00
|
|
|
identify it uniquely to the server is required.
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
2001-07-27 00:05:04 +00:00
|
|
|
For non-interactive options,
|
|
|
|
.B console
|
|
|
|
outputs only the requested information and exits.
|
|
|
|
.PP
|
|
|
|
.B Console
|
|
|
|
knows only of a primary
|
|
|
|
.B conserver
|
2003-09-22 20:49:53 +00:00
|
|
|
host (see the
|
|
|
|
.B \-M
|
|
|
|
option below), to which it initially connects.
|
2001-07-27 00:05:04 +00:00
|
|
|
In a multi-server environment, the primary server may refer
|
|
|
|
the client to a different server handling the requested console,
|
2003-09-22 20:49:53 +00:00
|
|
|
or it will provide a list of all servers if required (as when
|
1998-12-18 23:12:55 +00:00
|
|
|
.B console
|
2001-07-27 00:05:04 +00:00
|
|
|
is invoked with the
|
2003-09-22 20:49:53 +00:00
|
|
|
.B \-r
|
2001-07-27 00:05:04 +00:00
|
|
|
option).
|
|
|
|
.B Console
|
|
|
|
then opens connections to the appropriate server(s).
|
|
|
|
It is not necessary for the user of
|
|
|
|
.B console
|
2003-09-22 20:49:53 +00:00
|
|
|
to know which server manages which consoles, as long as
|
2001-07-27 00:05:04 +00:00
|
|
|
.B console
|
|
|
|
knows a valid primary server
|
|
|
|
and all available consoles are listed in the primary server's
|
|
|
|
configuration file.
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH OPTIONS
|
2001-07-27 00:05:04 +00:00
|
|
|
.PP
|
2003-09-22 20:49:53 +00:00
|
|
|
Options may be given as separate arguments (e.g.,
|
|
|
|
.B \-v
|
|
|
|
.BR \-w )
|
|
|
|
or clustered (e.g.,
|
|
|
|
.BR \-vw ).
|
2001-07-27 00:05:04 +00:00
|
|
|
Options and their arguments may be separated by optional white space.
|
|
|
|
Option arguments containing spaces or other characters special to the shell
|
|
|
|
must be quoted.
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP 11
|
2001-07-27 00:05:04 +00:00
|
|
|
.B \-7
|
2003-09-22 20:49:53 +00:00
|
|
|
Strip the high bit off of all data received, whether from user
|
|
|
|
input or from the server, before any processing occurs.
|
2001-07-27 00:05:04 +00:00
|
|
|
Disallows escape sequence characters with the high bit set.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
|
|
|
.B \-a
|
2001-07-27 00:05:04 +00:00
|
|
|
Access a console with a two-way (read-write) connection (this is the default).
|
|
|
|
The connection is dropped to spy mode if someone else is attached read-write.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
1999-05-14 17:22:00 +00:00
|
|
|
.BI \-b message
|
2003-09-22 20:49:53 +00:00
|
|
|
Broadcast a
|
|
|
|
.I message
|
|
|
|
to all users connected to each server.
|
2003-03-11 02:08:07 +00:00
|
|
|
.TP
|
|
|
|
.BI \-B message
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-b
|
|
|
|
but just send a
|
|
|
|
.I message
|
|
|
|
to users on the primary server.
|
1999-05-14 17:22:00 +00:00
|
|
|
.TP
|
2002-10-14 21:03:35 +00:00
|
|
|
.BI \-c cred
|
2003-09-22 20:49:53 +00:00
|
|
|
Load an SSL certificate and key from the PEM encoded file
|
|
|
|
.IR cred .
|
|
|
|
.TP
|
2004-05-26 00:41:29 +00:00
|
|
|
.BI \-C config
|
|
|
|
Use the per-user configuration file
|
2005-09-05 23:15:33 +00:00
|
|
|
.IR config .
|
2004-05-26 00:41:29 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B \-d
|
|
|
|
Disconnect the users specified by
|
|
|
|
.IR user @ console .
|
|
|
|
You may specify the target as
|
|
|
|
.I user
|
|
|
|
(disconnect the
|
|
|
|
.IR user,
|
|
|
|
regardless of what console they are attached to),
|
|
|
|
.RI @ console
|
|
|
|
(disconnect all users attached to
|
|
|
|
.IR console ),
|
|
|
|
or
|
|
|
|
.IR user @ console
|
|
|
|
(disconnect the
|
|
|
|
.I user
|
|
|
|
attached to
|
|
|
|
.IR console ).
|
2002-10-14 21:03:35 +00:00
|
|
|
.TP
|
2001-07-05 16:18:19 +00:00
|
|
|
.B \-D
|
2001-07-27 00:05:04 +00:00
|
|
|
Enable debugging output.
|
2001-07-05 16:18:19 +00:00
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.BI \-e esc
|
2003-09-22 20:49:53 +00:00
|
|
|
Set the initial two-character escape sequence to those represented by
|
|
|
|
.IR esc .
|
|
|
|
Any of the forms output by
|
|
|
|
.BR cat (1)'s
|
|
|
|
.B \-v
|
|
|
|
option are accepted.
|
|
|
|
The default value is
|
|
|
|
.RB `` ^Ec ''.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
2002-10-14 21:03:35 +00:00
|
|
|
.B \-E
|
2003-09-22 20:49:53 +00:00
|
|
|
If encryption has been built into the code
|
|
|
|
.RB ( --with-openssl ),
|
2004-05-07 16:05:25 +00:00
|
|
|
encrypted client connections are, by default, a requirement.
|
|
|
|
This option disables any attempt at creating an
|
|
|
|
encrypted connection.
|
|
|
|
If you'd like to use encrypted connections when your server
|
|
|
|
supports it, but fallback to non-encrypted otherwise, the
|
|
|
|
.B \-U
|
|
|
|
option is what you want.
|
2002-10-14 21:03:35 +00:00
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.B \-f
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-a
|
|
|
|
except it will force any existing connection into spy mode.
|
2001-07-27 00:05:04 +00:00
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.B \-h
|
|
|
|
Display a brief help message.
|
|
|
|
.TP
|
2002-03-12 09:12:20 +00:00
|
|
|
.B \-i
|
2005-09-05 23:15:33 +00:00
|
|
|
Display status information in a machine-parseable format (see below for the details).
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-01-28 01:48:36 +00:00
|
|
|
.B \-I
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-i
|
|
|
|
but just acts on the primary server.
|
2003-01-28 01:48:36 +00:00
|
|
|
.TP
|
2020-10-18 00:07:01 +00:00
|
|
|
.B \-k
|
|
|
|
Abort the connection if the console is not in the `up' state immediately
|
|
|
|
upon connecting.
|
|
|
|
.TP
|
2001-07-05 16:18:19 +00:00
|
|
|
.BI \-l user
|
2003-09-22 20:49:53 +00:00
|
|
|
Set the login name used for authentication to
|
|
|
|
.IR user .
|
|
|
|
By default,
|
|
|
|
.B console
|
|
|
|
uses $USER if its uid matches the user's real uid,
|
2001-07-27 00:05:04 +00:00
|
|
|
or $LOGNAME if its uid matches the user's real uid,
|
|
|
|
or else the name associated with the user's real uid.
|
2001-07-05 16:18:19 +00:00
|
|
|
.TP
|
2004-05-26 00:41:29 +00:00
|
|
|
.BI \-M master
|
2003-09-22 20:49:53 +00:00
|
|
|
The
|
|
|
|
.B console
|
|
|
|
client program polls
|
2004-05-26 00:41:29 +00:00
|
|
|
.I master
|
2003-09-22 20:49:53 +00:00
|
|
|
as the primary server,
|
|
|
|
rather than the default set at compile time (typically
|
|
|
|
.RB `` console '').
|
|
|
|
The default
|
2004-05-26 00:41:29 +00:00
|
|
|
.I master
|
2003-09-22 20:49:53 +00:00
|
|
|
may be changed at compile time using the
|
|
|
|
.B --with-master
|
|
|
|
option.
|
2004-05-26 00:41:29 +00:00
|
|
|
If
|
|
|
|
.B --with-uds
|
|
|
|
is used to enable Unix domain sockets, however, this option points
|
|
|
|
.B console
|
|
|
|
to the directory which holds those sockets.
|
|
|
|
The default
|
|
|
|
.I master
|
|
|
|
directory
|
|
|
|
.RB (`` /tmp/conserver '')
|
|
|
|
may be changed at compile time using the
|
|
|
|
.B --with-uds
|
|
|
|
option.
|
|
|
|
.TP
|
|
|
|
.BI \-n
|
|
|
|
Do not read the system-wide configuration file.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
2001-07-05 16:18:19 +00:00
|
|
|
.BI \-p port
|
2003-09-22 20:49:53 +00:00
|
|
|
Set the port to connect to.
|
|
|
|
This may be either a port number
|
|
|
|
or a service name.
|
|
|
|
The default
|
|
|
|
.I port
|
|
|
|
may be changed at compile time
|
|
|
|
using the
|
|
|
|
.B --with-port
|
|
|
|
option.
|
2004-05-26 00:41:29 +00:00
|
|
|
If the
|
|
|
|
.B --with-uds
|
|
|
|
option was used, this option is ignored.
|
2001-07-05 16:18:19 +00:00
|
|
|
.TP
|
|
|
|
.B \-P
|
2001-07-27 00:05:04 +00:00
|
|
|
Display the pid of the master daemon process on each server.
|
2001-07-05 16:18:19 +00:00
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.B \-q
|
2003-09-22 20:49:53 +00:00
|
|
|
The
|
|
|
|
.B console
|
|
|
|
client connects to each server to request that the
|
|
|
|
server daemon quit (shut down).
|
|
|
|
The root password of the host(s) running conserver is required
|
|
|
|
unless the local host is listed as ``trusted'' in the
|
|
|
|
conserver.cf file; in that case, just press <return>.
|
1999-05-14 17:07:58 +00:00
|
|
|
.TP
|
|
|
|
.B \-Q
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-q
|
|
|
|
but just acts on the primary server.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
|
|
|
.B \-r
|
2003-09-22 20:49:53 +00:00
|
|
|
Display daemon versions.
|
|
|
|
The
|
|
|
|
.B console
|
|
|
|
client connects to each
|
2001-07-27 00:05:04 +00:00
|
|
|
server to request its version information.
|
|
|
|
.TP
|
|
|
|
.B \-R
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-r
|
|
|
|
but just acts on the primary server.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
|
|
|
.B \-s
|
2001-07-27 00:05:04 +00:00
|
|
|
Request a read-only (spy mode) connection.
|
|
|
|
In this mode all the escape sequences (below) work, or report errors,
|
1998-12-18 23:12:55 +00:00
|
|
|
but all other keyboard input is discarded.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B \-t
|
|
|
|
Send a text
|
|
|
|
.I message
|
|
|
|
to
|
|
|
|
.IR user @ console .
|
|
|
|
You may specify the target as
|
|
|
|
.I user
|
|
|
|
(send to
|
|
|
|
.IR user,
|
|
|
|
regardless of what console they are attached to),
|
|
|
|
.RI @ console
|
|
|
|
(send to all users attached to
|
|
|
|
.IR console ),
|
|
|
|
or
|
|
|
|
.IR user @ console
|
|
|
|
(send to
|
|
|
|
.I user
|
|
|
|
attached to
|
|
|
|
.IR console ).
|
|
|
|
.TP
|
1999-01-27 01:49:19 +00:00
|
|
|
.B \-u
|
2003-09-29 15:50:27 +00:00
|
|
|
Show a list of all consoles with status (`up', `down', or `init')
|
2003-09-22 20:49:53 +00:00
|
|
|
and attached users
|
|
|
|
.RI ( user @ host
|
|
|
|
if attached read-write, `<spies>' if only users in spy mode, or `<none>').
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
2004-05-07 16:05:25 +00:00
|
|
|
.B \-U
|
|
|
|
If encryption has been built into the code
|
|
|
|
.RB ( --with-openssl ),
|
|
|
|
encrypted client connections are, by default, a requirement.
|
|
|
|
This option allows the client to attempt an encrypted connection
|
|
|
|
but fall back to a non-encrypted connection if the server doesn't
|
|
|
|
support encryption.
|
|
|
|
If the encryption handshake is failing, disabling encryption on the
|
|
|
|
client with the
|
|
|
|
.B \-E
|
|
|
|
option is probably what you want.
|
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.B \-v
|
2001-07-27 00:05:04 +00:00
|
|
|
Be more verbose when building the connection(s).
|
1998-12-18 23:12:55 +00:00
|
|
|
Use this option in combination with any of `show' options (below)
|
|
|
|
for added benefit.
|
|
|
|
.TP
|
2001-07-27 00:05:04 +00:00
|
|
|
.B \-V
|
|
|
|
Output the version and settings of the console client program
|
|
|
|
and then exit.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
2001-07-27 00:05:04 +00:00
|
|
|
.B \-w
|
|
|
|
Show a list of all who are currently connected to consoles,
|
2003-09-22 20:49:53 +00:00
|
|
|
including the hostnames where the
|
|
|
|
.B console
|
|
|
|
connections originate and the idle times.
|
|
|
|
This is useful to see if anybody is actively
|
2001-07-27 00:05:04 +00:00
|
|
|
using the console system if it becomes necessary to shut down
|
2003-09-22 20:49:53 +00:00
|
|
|
.BR conserver .
|
2001-07-05 16:18:19 +00:00
|
|
|
.TP
|
2003-01-28 01:48:36 +00:00
|
|
|
.B \-W
|
2003-09-22 20:49:53 +00:00
|
|
|
Same as
|
|
|
|
.B \-w
|
|
|
|
but just acts on the primary server.
|
2003-01-28 01:48:36 +00:00
|
|
|
.TP
|
1998-12-18 23:12:55 +00:00
|
|
|
.B \-x
|
|
|
|
Show a list of consoles and devices.
|
2005-09-05 23:15:33 +00:00
|
|
|
.TP
|
|
|
|
.BI \-z cmd
|
|
|
|
Sends a command
|
|
|
|
.RI ( cmd )
|
|
|
|
to each server and displays the result.
|
|
|
|
The valid commands are:
|
|
|
|
.RS
|
|
|
|
.sp
|
|
|
|
.PD 0
|
|
|
|
.TP 12
|
|
|
|
.B bringup
|
|
|
|
Try to connect all consoles marked as down (this is equivalent
|
|
|
|
to sending the server a SIGUSR1)
|
|
|
|
.TP
|
|
|
|
.B SIGUSR1
|
|
|
|
Same as
|
|
|
|
.B bringup
|
|
|
|
.TP
|
|
|
|
.B help
|
|
|
|
Displays the help message
|
|
|
|
.TP
|
|
|
|
.B pid
|
|
|
|
Returns the pid of the server (this is equivalent to
|
|
|
|
.BR \-P )
|
|
|
|
.TP
|
|
|
|
.B quit
|
|
|
|
Instructs the server to shut down (this is equivalent to
|
|
|
|
.B \-q
|
|
|
|
or sending the server a SIGTERM)
|
|
|
|
.TP
|
|
|
|
.B SIGTERM
|
|
|
|
Same as
|
|
|
|
.B quit
|
|
|
|
.TP
|
|
|
|
.B reconfig
|
|
|
|
Instructs the server to reload the configuration file, then
|
|
|
|
perform the actions of
|
|
|
|
.B reopen
|
|
|
|
(this is equivalent to sending the server a SIGHUP)
|
|
|
|
.TP
|
|
|
|
.B SIGHUP
|
|
|
|
Same as
|
|
|
|
.B reconfig
|
|
|
|
.TP
|
|
|
|
.B reopen
|
|
|
|
Instructs the server to reopen all logfiles, then
|
|
|
|
perform the actions of
|
|
|
|
.B bringup
|
|
|
|
(this is equivalent to sending the server a SIGUSR2)
|
|
|
|
.TP
|
|
|
|
.B SIGUSR2
|
|
|
|
Same as
|
|
|
|
.B reopen
|
|
|
|
.TP
|
|
|
|
.B version
|
|
|
|
Returns the version of the server (this is equivalent to
|
|
|
|
.BR \-V )
|
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.BI \-Z cmd
|
|
|
|
Same as
|
|
|
|
.B \-z
|
|
|
|
but just sends
|
|
|
|
.I cmd
|
|
|
|
to the primary server.
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
2003-09-22 20:49:53 +00:00
|
|
|
The
|
|
|
|
.BR \-A ,
|
|
|
|
.BR \-F ", or"
|
|
|
|
.B \-S
|
|
|
|
options have the same effect as their lower-case variants.
|
2001-07-27 00:05:04 +00:00
|
|
|
In addition, they each request the last 20 lines of the console output after
|
2003-09-22 20:49:53 +00:00
|
|
|
making the connection (as if
|
2004-05-07 16:05:25 +00:00
|
|
|
.RB `` ^Ecr ''
|
2003-09-22 20:49:53 +00:00
|
|
|
were typed).
|
2002-03-12 09:12:20 +00:00
|
|
|
.PP
|
2003-09-22 20:49:53 +00:00
|
|
|
The
|
2005-09-05 23:15:33 +00:00
|
|
|
.BR \-i ,
|
|
|
|
.BR \-u ,
|
|
|
|
.BR \-w ", and"
|
|
|
|
.B \-x
|
|
|
|
options can be given a console name, which will limit their output to that console.
|
|
|
|
.PP
|
|
|
|
The
|
2003-09-22 20:49:53 +00:00
|
|
|
.B \-i
|
2005-09-05 23:15:33 +00:00
|
|
|
option outputs status information regarding each console in 15 colon-separated fields.
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I name
|
2002-03-12 09:12:20 +00:00
|
|
|
The name of the console.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I hostname,pid,socket
|
2002-03-12 09:12:20 +00:00
|
|
|
The hostname, pid, and socket number of the child process managing
|
|
|
|
the console.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I type
|
|
|
|
The type of console.
|
|
|
|
Values will be a `/' for a local device, `|' for
|
2006-04-10 02:07:58 +00:00
|
|
|
a command, `!' for a remote port, `%' for a Unix domain socket,
|
|
|
|
and `#' for a noop console.
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I console-details
|
|
|
|
The details regarding the console.
|
2004-03-11 17:54:13 +00:00
|
|
|
The values here (all comma-separated) depend on the type of the console.
|
|
|
|
Local devices will have values of the device file, baud rate/parity, and
|
2003-09-22 20:49:53 +00:00
|
|
|
file descriptor for the device.
|
2002-03-12 09:12:20 +00:00
|
|
|
Commands will have values of the command, the command's pid, the
|
|
|
|
pseudo-tty, and file descriptor for the pseudo-tty.
|
|
|
|
Remote ports will have values of the remote hostname, remote port number,
|
2004-01-18 17:31:24 +00:00
|
|
|
``raw'' or ``telnet'' protocol, and file descriptor for the socket connection.
|
2006-04-10 02:07:58 +00:00
|
|
|
Unix domain sockets will have the path to the socket and the file
|
|
|
|
descriptor for the socket connection.
|
|
|
|
Noop consoles will have nothing.
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I users-list
|
|
|
|
The details of each user connected to the console.
|
|
|
|
The details for each
|
2003-11-16 19:33:39 +00:00
|
|
|
user are an `@' separated list of `w', `r', or `s' (for read-write, read-only,
|
2002-09-23 21:31:15 +00:00
|
|
|
or suspended), username, hostname the user is on, the user's idle time,
|
|
|
|
and (for `r' and `s' users only) ``rw'' or ``ro'' (if the user wants
|
2003-09-22 20:49:53 +00:00
|
|
|
read-write mode or not).
|
2003-11-16 19:33:39 +00:00
|
|
|
Each user bundle is separated by commas.
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I state
|
|
|
|
The state of the console.
|
2003-09-29 15:50:27 +00:00
|
|
|
Values with either be ``up'', ``down'', or ``init''.
|
2002-03-12 09:12:20 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I perm
|
|
|
|
This value will either be ``rw'' or ``ro''.
|
|
|
|
It will only be ``ro'' if
|
2002-03-12 09:12:20 +00:00
|
|
|
the console is a local device (`/' type) and the permissions are such
|
|
|
|
that the server can open the file for read, but not write.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I logfile-details
|
|
|
|
The details regarding the logging for the console.
|
2004-03-11 17:54:13 +00:00
|
|
|
The comma-separated
|
2002-03-12 09:12:20 +00:00
|
|
|
values will be the logfile, ``log'' or ``nolog'' (if logging is on
|
2004-05-07 16:05:25 +00:00
|
|
|
or not - toggled via ``^EcL''), ``act'' or ``noact'' (if activity logging is
|
2002-03-12 09:12:20 +00:00
|
|
|
enabled or not - the `a' timestamp option), the timestamp interval, and
|
|
|
|
the file descriptor of the logfile.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I break
|
2002-03-12 09:12:20 +00:00
|
|
|
The default break sequence used for the console.
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.I reup
|
2002-03-12 09:12:20 +00:00
|
|
|
If the console is currently down and the automatic reconnection code
|
|
|
|
is at work, it will have the value of ``autoup'', otherwise it
|
|
|
|
will be ``noautoup''.
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.I aliases
|
2004-03-11 17:54:13 +00:00
|
|
|
The console aliases are presented in a comma-separated list.
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.I options
|
2004-03-11 17:54:13 +00:00
|
|
|
The active options for the console are presented in a comma-separated list.
|
2003-09-29 15:50:27 +00:00
|
|
|
.TP
|
|
|
|
.I initcmd
|
|
|
|
The initcmd configuration option for the console.
|
2003-11-16 19:33:39 +00:00
|
|
|
.TP
|
|
|
|
.I idletimeout
|
|
|
|
The idletimeout configuration option for the console.
|
|
|
|
.TP
|
|
|
|
.I idlestring
|
|
|
|
The idlestring configuration option for the console.
|
2004-05-26 00:41:29 +00:00
|
|
|
.SH CONFIGURATION
|
|
|
|
.B Console
|
|
|
|
reads configuration information from the system-wide configuration file
|
|
|
|
.RB ( console.cf ),
|
|
|
|
then the per-user configuration file
|
|
|
|
.RB ( .consolerc ),
|
|
|
|
and then applies command-line arguments.
|
|
|
|
Each configuration location can override the previous.
|
|
|
|
The same happens when parsing an individual file - the later entries
|
|
|
|
always override the earlier entries.
|
|
|
|
Because of that, you should put ``global'' defaults first and
|
|
|
|
more specific defaults second.
|
|
|
|
.PP
|
|
|
|
The configuration file is read using the same parser as
|
|
|
|
.BR conserver.cf (5),
|
|
|
|
and you should check that manpage for parser details.
|
|
|
|
.B Console
|
|
|
|
recognizes the following configuration blocks.
|
2004-05-28 18:03:33 +00:00
|
|
|
.TP
|
|
|
|
\f3config\fP \f2hostname\fP|\f2ipaddr\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
2004-05-28 18:03:33 +00:00
|
|
|
Define a configuration block for the client host named
|
2004-05-26 00:41:29 +00:00
|
|
|
.I hostname
|
|
|
|
or using the address
|
|
|
|
.IR ipaddr .
|
|
|
|
If the value of ``*'' is used, the configuration block will be applied to
|
2004-05-28 18:03:33 +00:00
|
|
|
all client hosts.
|
2004-05-26 00:41:29 +00:00
|
|
|
.RS
|
2004-05-28 18:03:33 +00:00
|
|
|
.TP
|
|
|
|
\f3escape\fP \f2esc\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set the escape sequence (see the
|
|
|
|
.B \-e
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3master\fP \f2master\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set the default master to
|
|
|
|
.I master
|
|
|
|
(see the
|
|
|
|
.B \-M
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2006-04-10 02:07:58 +00:00
|
|
|
\f3playback\fP \f2num\fP|\f3""\fP
|
|
|
|
.br
|
|
|
|
Override the playback length for the
|
|
|
|
.B p
|
|
|
|
escape command to
|
|
|
|
.I num
|
|
|
|
lines (if the server supports it).
|
|
|
|
Using the special value of ``0'' will cause the client to use the number
|
|
|
|
of lines of the current terminal (if that can be determined).
|
|
|
|
If the null string (``""'') is used, the playback length will not be overridden.
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3port\fP \f2port\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set the default port to
|
|
|
|
.I port
|
|
|
|
(see the
|
|
|
|
.B \-p
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2006-04-10 02:07:58 +00:00
|
|
|
\f3replay\fP \f2num\fP|\f3""\fP
|
|
|
|
.br
|
|
|
|
Override the replay length for the
|
|
|
|
.B r
|
|
|
|
escape command to
|
|
|
|
.I num
|
|
|
|
lines (if the server supports it).
|
|
|
|
Using the special value of ``0'' will cause the client to use the number
|
|
|
|
of lines of the current terminal (if that can be determined).
|
|
|
|
If the null string (``""'') is used, the replay length will not be overridden.
|
|
|
|
.TP
|
2013-09-26 18:07:01 +00:00
|
|
|
\f3sslcacertificatefile\fP \f2filename\fP
|
|
|
|
.br
|
|
|
|
Load the valid CA certificates for the
|
|
|
|
.SM SSL
|
|
|
|
connection from the PEM encoded file.
|
|
|
|
.TP
|
|
|
|
\f3sslcacertificatepath\fP \f2directory\fP
|
|
|
|
.br
|
|
|
|
Load the valid CA certificates for the
|
|
|
|
.SM SSL
|
|
|
|
connection from the PEM encoded files in the directory.
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3sslcredentials\fP \f2filename\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set the
|
|
|
|
.SM SSL
|
|
|
|
credentials file location (see the
|
|
|
|
.B \-c
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3sslenabled\fP \f3yes\fP|\f3true\fP|\f3on\fP|\f3no\fP|\f3false\fP|\f3off\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set whether or not encryption is attempted when talking to servers (see the
|
|
|
|
.B \-E
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3sslrequired\fP \f3yes\fP|\f3true\fP|\f3on\fP|\f3no\fP|\f3false\fP|\f3off\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set whether or not encryption is required when talking to servers (see the
|
|
|
|
.B \-U
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3striphigh\fP \f3yes\fP|\f3true\fP|\f3on\fP|\f3no\fP|\f3false\fP|\f3off\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set whether or not to strip the high bit off all data received
|
|
|
|
(see the
|
|
|
|
.B \-7
|
|
|
|
command-line flag).
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3username\fP \f2user\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set the username passed to the server to
|
|
|
|
.I user
|
|
|
|
(see the
|
|
|
|
.B \-l
|
|
|
|
command-line flag).
|
|
|
|
.RE
|
2004-05-28 18:03:33 +00:00
|
|
|
.TP
|
|
|
|
\f3terminal\fP \f2type\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Define a configuration block when using a terminal of type
|
|
|
|
.IR type .
|
|
|
|
If the value of ``*'' is used, the configuration block will be applied to
|
|
|
|
all terminal types.
|
|
|
|
.RS
|
2004-05-28 18:03:33 +00:00
|
|
|
.TP
|
|
|
|
\f3attach\fP \f2string\fP|\f3""\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set a
|
|
|
|
.I string
|
|
|
|
to print when successfully attached to a console.
|
|
|
|
Character substitions will be performed based on the
|
|
|
|
.B attachsubst
|
|
|
|
value and occur
|
|
|
|
.I before
|
|
|
|
interpretation of the special characters below.
|
2004-05-28 18:03:33 +00:00
|
|
|
If the null string (``\f3""\fP'') is used, no string will be printed.
|
2004-05-26 00:41:29 +00:00
|
|
|
.I string
|
|
|
|
is a simple character string with the exception of `\e'
|
|
|
|
and `^':
|
|
|
|
.RS
|
|
|
|
.RS
|
|
|
|
.sp
|
|
|
|
.PD 0
|
|
|
|
.TP 6
|
|
|
|
.B \ea
|
|
|
|
alert
|
|
|
|
.TP
|
|
|
|
.B \eb
|
|
|
|
backspace
|
|
|
|
.TP
|
|
|
|
.B \ef
|
|
|
|
form-feed
|
|
|
|
.TP
|
|
|
|
.B \en
|
|
|
|
newline
|
|
|
|
.TP
|
|
|
|
.B \er
|
|
|
|
carriage-return
|
|
|
|
.TP
|
|
|
|
.B \et
|
|
|
|
tab
|
|
|
|
.TP
|
|
|
|
.B \ev
|
|
|
|
vertical-tab
|
|
|
|
.TP
|
|
|
|
.B \e\e
|
|
|
|
backslash
|
|
|
|
.TP
|
|
|
|
.B \e^
|
|
|
|
circumflex
|
|
|
|
.TP
|
|
|
|
.BI \e ooo
|
|
|
|
octal representation of a character (where
|
|
|
|
.I ooo
|
|
|
|
is one to three octal digits)
|
|
|
|
.TP
|
|
|
|
.BI \e c
|
|
|
|
character
|
|
|
|
.I c
|
|
|
|
.TP
|
|
|
|
.B ^?
|
|
|
|
delete
|
|
|
|
.TP
|
|
|
|
.BI ^ c
|
|
|
|
control character
|
|
|
|
.RI ( c
|
|
|
|
is ``and''ed with 0x1f)
|
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
An interesting use of
|
|
|
|
.B attach
|
|
|
|
and
|
|
|
|
.B attachsubst
|
|
|
|
would be:
|
|
|
|
.RS
|
|
|
|
.IP
|
|
|
|
.ft CR
|
|
|
|
.nf
|
|
|
|
terminal xterm {
|
|
|
|
attach "^[]0;conserver: U@C^G";
|
|
|
|
attachsubst U=us,C=cs;
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.ft
|
|
|
|
.RE
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3attachsubst\fP \f2c\fP\f3=\fP\f2t\fP[\f2n\fP]\f2f\fP[\f3,\fP...]|\f3""\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Perform character substitutions on the
|
|
|
|
.B attach
|
|
|
|
value.
|
|
|
|
A series of replacements can be defined by specifying a
|
|
|
|
comma-separated list of
|
2004-05-28 18:03:33 +00:00
|
|
|
\f2c\fP\f3=\fP\f2t\fP[\f2n\fP]\f2f\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
sequences where
|
|
|
|
.I c
|
|
|
|
is any printable character,
|
|
|
|
.I t
|
|
|
|
specifies the replacement value,
|
|
|
|
.I n
|
|
|
|
is a field length (optional),
|
|
|
|
and
|
|
|
|
.I f
|
|
|
|
is the format string.
|
|
|
|
.I t
|
|
|
|
can be one of the characters below, catagorized as a string replacement
|
|
|
|
or a numeric replacement, which dictates the use of the
|
|
|
|
.I n
|
|
|
|
and
|
|
|
|
.I f
|
|
|
|
fields.
|
|
|
|
.RS
|
|
|
|
.RS
|
|
|
|
.sp
|
|
|
|
.PD 0
|
|
|
|
.TP
|
|
|
|
String Replacement
|
|
|
|
.TP
|
|
|
|
.B u
|
|
|
|
username
|
|
|
|
.TP
|
|
|
|
.B c
|
|
|
|
console name
|
|
|
|
.sp
|
|
|
|
.PP
|
|
|
|
Numeric Replacement
|
|
|
|
.TP
|
|
|
|
none available (yet)
|
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
For string replacements, if the replacement isn't at least
|
|
|
|
.I n
|
|
|
|
characters, it will be padded with space characters on the left.
|
|
|
|
.I f
|
|
|
|
must be `s'.
|
|
|
|
For numeric replacements, the value will be formatted to at least
|
|
|
|
.I n
|
|
|
|
characters, padded with 0s if
|
|
|
|
.I n
|
|
|
|
begins with a 0, and space characters otherwise.
|
|
|
|
.I f
|
|
|
|
must be either `d', `x' or `X', specifying a decimal, lower-case
|
|
|
|
hexadecimal, or an uppercase hexadecimal conversion.
|
2004-05-28 18:03:33 +00:00
|
|
|
If the null string (``\f3""\fP'') is used, no replacements will be done.
|
|
|
|
.TP
|
|
|
|
\f3detach\fP \f2string\fP|\f3""\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Set a
|
|
|
|
.I string
|
|
|
|
to print once detached from a console.
|
|
|
|
Character substitions will be performed based on the
|
|
|
|
.B detachsubst
|
|
|
|
value.
|
|
|
|
See the
|
|
|
|
.B attach
|
|
|
|
option for an explanation of
|
|
|
|
.IR string .
|
2004-05-28 18:03:33 +00:00
|
|
|
If the null string (``\f3""\fP'') is used, no string will be printed.
|
2004-05-26 00:41:29 +00:00
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
\f3detachsubst\fP \f2c\fP\f3=\fP\f2t\fP[\f2n\fP]\f2f\fP[\f3,\fP...]|\f3""\fP
|
2004-05-26 00:41:29 +00:00
|
|
|
.br
|
|
|
|
Perform character substitutions on the
|
|
|
|
.B detach
|
|
|
|
value.
|
|
|
|
See the
|
|
|
|
.B attachsubst
|
|
|
|
option for an explanation of the format string.
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
A simple configuration to set a new default escape sequence and override
|
|
|
|
the master location would be:
|
|
|
|
.IP
|
|
|
|
.ft CR
|
|
|
|
.nf
|
|
|
|
# override options for all hosts
|
|
|
|
config * {
|
|
|
|
master localhost;
|
|
|
|
escape ^Ee;
|
|
|
|
}
|
|
|
|
# set things more specific to host1
|
|
|
|
# note: if the entries were reversed, host1
|
|
|
|
# would also use localhost.
|
|
|
|
config host1 {
|
|
|
|
master console1;
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.ft
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH "ESCAPE SEQUENCES"
|
2001-07-27 00:05:04 +00:00
|
|
|
The connection can be controlled by a two-character escape sequence, followed
|
2003-09-22 20:49:53 +00:00
|
|
|
by a command.
|
|
|
|
The default escape sequence is ``control-E c''
|
2001-07-27 00:05:04 +00:00
|
|
|
(octal 005 143).
|
|
|
|
(The escape sequences are actually processed by the server; see the
|
|
|
|
.BR conserver (8)
|
|
|
|
man page for more information.)
|
|
|
|
Commands are:
|
1998-12-18 23:12:55 +00:00
|
|
|
.sp
|
2001-07-27 00:05:04 +00:00
|
|
|
.PD 0
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP 13
|
2004-03-11 17:54:13 +00:00
|
|
|
.B \.
|
|
|
|
disconnect
|
|
|
|
.TP
|
|
|
|
.B ;
|
2004-03-23 01:14:45 +00:00
|
|
|
move to another console
|
2004-03-11 17:54:13 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B a
|
2001-07-27 00:05:04 +00:00
|
|
|
attach read-write if nobody already is
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B b
|
2002-03-12 09:12:20 +00:00
|
|
|
send broadcast message to all users on this console
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B c
|
2001-07-27 00:05:04 +00:00
|
|
|
toggle flow control (don't do this)
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B d
|
2001-07-27 00:05:04 +00:00
|
|
|
down the current console
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.BI e cc
|
2001-07-27 00:05:04 +00:00
|
|
|
change the escape sequence to the next two characters
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B f
|
2001-07-27 00:05:04 +00:00
|
|
|
forcibly attach read-write
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B g
|
2001-07-27 00:05:04 +00:00
|
|
|
group info
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
2003-11-16 19:33:39 +00:00
|
|
|
.B i
|
|
|
|
information dump
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B L
|
2001-07-27 00:05:04 +00:00
|
|
|
toggle logging on/off
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B l?
|
2002-01-21 10:58:05 +00:00
|
|
|
list the break sequences available
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B l0
|
2002-01-21 10:58:05 +00:00
|
|
|
send the break sequence associated with this console
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
2015-06-02 17:34:09 +00:00
|
|
|
.B l1-9a-z
|
2002-01-21 10:58:05 +00:00
|
|
|
send the specific break sequence
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
2003-10-06 01:08:18 +00:00
|
|
|
.B m
|
|
|
|
display the "message of the day"
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B o
|
2001-07-27 00:05:04 +00:00
|
|
|
close (if open) and reopen the line (to clear errors (silo overflows))
|
|
|
|
and the log file
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B p
|
2006-04-10 02:07:58 +00:00
|
|
|
playback the last 60 lines of output
|
|
|
|
.TP
|
|
|
|
.B P
|
|
|
|
set number of playback lines
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B r
|
2001-07-27 00:05:04 +00:00
|
|
|
replay the last 20 lines of output
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
2006-04-10 02:07:58 +00:00
|
|
|
.B R
|
|
|
|
set number of replay lines
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B s
|
2013-09-26 18:07:01 +00:00
|
|
|
switch to spy mode (read only)
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B u
|
2001-07-27 00:05:04 +00:00
|
|
|
show status of hosts/users in this group
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B v
|
2001-07-27 00:05:04 +00:00
|
|
|
show the version of the group server
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B w
|
2001-07-27 00:05:04 +00:00
|
|
|
who is using this console
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B x
|
2001-07-27 00:05:04 +00:00
|
|
|
examine this group's devices and modes
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.B z
|
2001-07-27 00:05:04 +00:00
|
|
|
suspend this connection
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
2013-09-26 18:07:01 +00:00
|
|
|
.B !
|
|
|
|
invoke task
|
|
|
|
.TP
|
2003-12-02 16:40:59 +00:00
|
|
|
.B |
|
|
|
|
attach a local command to the console
|
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
.B ?
|
2001-07-27 00:05:04 +00:00
|
|
|
display list of commands
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ^M " (return)"
|
2001-07-27 00:05:04 +00:00
|
|
|
continue, ignore the escape sequence
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ^R " (ctrl-R)"
|
2001-07-27 00:05:04 +00:00
|
|
|
replay the last line only
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP
|
|
|
|
.BI \e ooo
|
|
|
|
send character having octal code
|
|
|
|
.IR ooo " (must"
|
|
|
|
specify three octal digits)
|
2001-07-27 00:05:04 +00:00
|
|
|
.PD
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
|
|
|
If any other character is hit after the escape sequence, all three characters
|
|
|
|
will be discarded.
|
|
|
|
Note that a line break or a down command
|
2004-05-28 18:03:33 +00:00
|
|
|
can only be sent from a read-write connection.
|
1998-12-18 23:12:55 +00:00
|
|
|
To send the escape sequence through the connection one must redefine
|
2003-09-22 20:49:53 +00:00
|
|
|
the outer escape sequence, or use
|
|
|
|
.BI ^Ec\e ooo
|
|
|
|
to send the
|
2001-07-27 00:05:04 +00:00
|
|
|
first escape character before typing the second character directly.
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
2003-09-22 20:49:53 +00:00
|
|
|
In the
|
|
|
|
.B \-u
|
|
|
|
output, the login ``<none>'' indicates no one is
|
2001-07-27 00:05:04 +00:00
|
|
|
viewing that console, and the login ``<spies>'' indicates that
|
2004-05-28 18:03:33 +00:00
|
|
|
no one has a read-write connection (only read-only).
|
2004-05-07 16:05:25 +00:00
|
|
|
.PP
|
|
|
|
When running a local command via
|
|
|
|
.RB `` ^Ec| '',
|
|
|
|
you can type
|
2004-05-28 18:03:33 +00:00
|
|
|
.RB ` ^C '
|
2004-05-07 16:05:25 +00:00
|
|
|
to send the command a SIGHUP,
|
2004-05-28 18:03:33 +00:00
|
|
|
.RB ` ^\e '
|
2004-05-07 16:05:25 +00:00
|
|
|
to send the command a SIGKILL, and
|
2004-05-28 18:03:33 +00:00
|
|
|
.RB ` o '
|
2004-05-07 16:05:25 +00:00
|
|
|
to toggle the display of the console data.
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH EXAMPLES
|
2003-09-22 20:49:53 +00:00
|
|
|
.TP 15
|
1998-12-18 23:12:55 +00:00
|
|
|
console \-u
|
|
|
|
Outputs something like:
|
2001-07-27 00:05:04 +00:00
|
|
|
.IP
|
2003-09-22 20:49:53 +00:00
|
|
|
.ft CR
|
|
|
|
.nf
|
|
|
|
dumb up <none>
|
|
|
|
expert up ksb@mentor
|
|
|
|
tyro up <spies>
|
|
|
|
mentor up <none>
|
|
|
|
sage up fine@cis
|
|
|
|
.fi
|
|
|
|
.ft
|
|
|
|
.IP
|
|
|
|
The
|
|
|
|
.B <none>
|
|
|
|
indicates no one is viewing
|
|
|
|
.IR dumb
|
|
|
|
or
|
|
|
|
.IR mentor ,
|
|
|
|
the
|
|
|
|
.B <spies>
|
|
|
|
indicates only read-only connections exist for
|
|
|
|
.IR tyro ,
|
|
|
|
and other
|
|
|
|
.IR login @ host
|
|
|
|
entries indicate users attached read-write to
|
|
|
|
.I sage
|
2001-07-27 00:05:04 +00:00
|
|
|
and
|
2003-09-22 20:49:53 +00:00
|
|
|
.IR expert .
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
|
|
|
console \-w
|
|
|
|
Outputs something like:
|
2003-09-22 20:49:53 +00:00
|
|
|
.IP
|
|
|
|
.ft CR
|
|
|
|
.nf
|
|
|
|
ksb@extra attach 2days expert
|
|
|
|
file@cis attach 21:46 sage
|
|
|
|
dmr@alice spy \00:04 tyro
|
|
|
|
.fi
|
|
|
|
.ft
|
2001-07-27 00:05:04 +00:00
|
|
|
.IP
|
|
|
|
The third column is the idle time of the user.
|
2003-09-22 20:49:53 +00:00
|
|
|
Either
|
|
|
|
.IR hours : minutes
|
|
|
|
or number of days is displayed.
|
1998-12-18 23:12:55 +00:00
|
|
|
.TP
|
2003-09-22 20:49:53 +00:00
|
|
|
console \-e "^[1" lv426
|
1998-12-18 23:12:55 +00:00
|
|
|
Requests a connection to the host ``lv426'' with the escape characters
|
|
|
|
set to ``escape one''.
|
2004-05-26 00:41:29 +00:00
|
|
|
.SH FILES
|
|
|
|
.PP
|
|
|
|
The following default file locations may be overridden
|
|
|
|
at compile time or by the command-line options described above.
|
|
|
|
Run
|
|
|
|
.B console \-V
|
|
|
|
to see the defaults set at compile time.
|
|
|
|
.PP
|
|
|
|
.PD 0
|
|
|
|
.TP 25
|
|
|
|
.B /etc/console.cf
|
|
|
|
system-wide configuration file
|
|
|
|
.TP
|
2004-05-28 18:03:33 +00:00
|
|
|
.B \s-1$HOME\s0/.consolerc
|
2004-05-26 00:41:29 +00:00
|
|
|
per-user configuration file
|
|
|
|
.PD
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH BUGS
|
|
|
|
It is possible to create a loop of console connections, with ugly results.
|
2003-09-22 20:49:53 +00:00
|
|
|
Never run
|
|
|
|
.B console
|
|
|
|
from within a console connection (unless you set each
|
2001-07-05 16:18:19 +00:00
|
|
|
escape sequence differently).
|
1998-12-18 23:12:55 +00:00
|
|
|
.PP
|
2003-09-29 15:50:27 +00:00
|
|
|
The \-i output can produce more than the stated number of fields of
|
|
|
|
information if the user-provided information has embedded colons.
|
|
|
|
.PP
|
2003-09-22 20:49:53 +00:00
|
|
|
I'm sure there are more, I just don't know where they are.
|
|
|
|
Please let me know if you find any.
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH AUTHORS
|
2001-07-27 00:05:04 +00:00
|
|
|
Thomas A. Fine, Ohio State Computer Science
|
1998-12-18 23:12:55 +00:00
|
|
|
.br
|
|
|
|
Kevin Braunsdorf, Purdue University Computing Center
|
1999-01-27 01:49:19 +00:00
|
|
|
.br
|
2001-07-05 16:18:19 +00:00
|
|
|
Bryan Stansell, conserver.com
|
1998-12-18 23:12:55 +00:00
|
|
|
.SH "SEE ALSO"
|
2001-07-27 00:05:04 +00:00
|
|
|
.BR conserver.cf (5),
|
|
|
|
.BR conserver.passwd (5),
|
|
|
|
.BR conserver (8)
|