Blame docs/man/man1/openvt.1

Packit Service 50ad14
.\" Copyright 1994-95 Jon Tombs (jon@gtex02.us.es, jon@robots.ox.ac.uk)
Packit Service 50ad14
.\" May be distributed under the GNU General Public License
Packit Service 50ad14
.TH OPENVT 1 V1.4 "19 Jul 1996" "Linux 1.x" "Linux Users' Manual"
Packit Service 50ad14
.SH NAME
Packit Service 50ad14
openvt \- start a program on a new virtual terminal (VT).
Packit Service 50ad14
.SH SYNOPSIS
Packit Service 50ad14
.B openvt 
Packit Service 50ad14
[\-c vtnumber] [OPTIONS] [\-\-] command
Packit Service 50ad14
.SH DESCRIPTION
Packit Service 50ad14
.B openvt
Packit Service 50ad14
will find the first available VT, and run on it the given 
Packit Service 50ad14
.BR command
Packit Service 50ad14
with the given 
Packit Service 50ad14
.BR "command options",
Packit Service 50ad14
standard input, output and error are directed to that terminal. The current
Packit Service 50ad14
search path ($PATH) is used to find the requested command. If no command is
Packit Service 50ad14
specified then the environment variable $SHELL is used.
Packit Service 50ad14
.SS OPTIONS
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-c, \-\-console=VTNUMBER"
Packit Service 50ad14
Use the given VT number and not the first available. Note you
Packit Service 50ad14
must have write access to the supplied VT for this to work;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-f, \-\-force"
Packit Service 50ad14
Force opening a VT without checking whether it is already in use;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-e, \-\-exec"
Packit Service 50ad14
Directly execute the given command, without forking.
Packit Service 50ad14
This option is meant for use in
Packit Service 50ad14
.IR /etc/inittab ;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-s, \-\-switch"
Packit Service 50ad14
Switch to the new VT when starting the command. The VT of the new command
Packit Service 50ad14
will be made the new current VT;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-u, \-\-user"
Packit Service 50ad14
Figure out the owner of the current VT, and run login as that user.
Packit Service 50ad14
Suitable to be called by init. Shouldn't be used with \-c or \-l;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-l, \-\-login"
Packit Service 50ad14
Make the command a login shell. A \- is prepended to the name of the command
Packit Service 50ad14
to be executed;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-v, \-\-verbose"
Packit Service 50ad14
Be a bit more verbose;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-w, \-\-wait"
Packit Service 50ad14
wait for command to complete. If \-w and \-s are used together then
Packit Service 50ad14
.B openvt
Packit Service 50ad14
will switch back to the controlling terminal when the command completes;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-V, \-\-version"
Packit Service 50ad14
print program version and exit;
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-h, \-\-help"
Packit Service 50ad14
show this text and exit.
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "\-\-" 
Packit Service 50ad14
end of options to
Packit Service 50ad14
.BR openvt .
Packit Service 50ad14
.SH NOTE
Packit Service 50ad14
If
Packit Service 50ad14
.B openvt
Packit Service 50ad14
is compiled with a getopt_long() and you wish to set
Packit Service 50ad14
options to the command to be run, then you must supply
Packit Service 50ad14
the end of options \-\- flag before the command.
Packit Service 50ad14
.BR
Packit Service 50ad14
.SH EXAMPLES
Packit Service 50ad14
.B openvt
Packit Service 50ad14
can be used to start a shell on the next free VT, by using the command:
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "openvt bash"
Packit Service 50ad14
.TP
Packit Service 50ad14
Packit Service 50ad14
To start the shell as a login shell, use:
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "openvt -l bash"
Packit Service 50ad14
.TP
Packit Service 50ad14
Packit Service 50ad14
To get a long listing you must supply the \-\- separator:
Packit Service 50ad14
.TP
Packit Service 50ad14
.I "openvt -- ls -l"
Packit Service 50ad14
.BR
Packit Service 50ad14
Packit Service 50ad14
.SH HISTORY
Packit Service 50ad14
Earlier,
Packit Service 50ad14
.B openvt
Packit Service 50ad14
was called
Packit Service 50ad14
.BR open .
Packit Service 50ad14
It was written by Jon Tombs <jon@gtex02.us.es or jon@robots.ox.ac.uk>.
Packit Service 50ad14
The \-w idea is from "sam".
Packit Service 50ad14
Packit Service 50ad14
.SH "SEE ALSO"
Packit Service 50ad14
.BR chvt (1),
Packit Service 50ad14
.BR doshell (8),
Packit Service 50ad14
.BR login (1)