Penguin
Annotated edit history of openvt(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 OPENVT
2 !!!OPENVT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 NOTE
7 EXAMPLES
8 SEE ALSO
9 AUTHOR
10 ----
11 !!NAME
12
13
14 openvt - start a program on a new virtual terminal (VT).
15 !!SYNOPSIS
16
17
18 __openvt__ [[-c vtnumber] [[-s] [[-u] [[-l] [[-v] [[--] command
19 command_options
20 !!DESCRIPTION
21
22
23 __openvt__ will find the first available VT, and run on
24 it the given __command__ with the given __command
25 options__, standard input, output and error are directed
26 to that terminal. The current search path ($PATH) is used to
27 find the requested command. If no command is specified then
28 the environment variable $SHELL is used.
29
30
31 __OPTIONS__
32
33
34 ''-c vtnumber''
35
36
37 Use the given VT number and not the first available. Note
38 you must have write access to the supplied VT for this to
39 work.
40
41
42 ''-s''
43
44
45 Switch to the new VT when starting the command. The VT of
46 the new command will be made the new current
47 VT.
48
49
50 ''-u''
51
52
53 Figure out the owner of the current VT, and run login as
54 that user. Suitable to be called by init. Shouldn't be used
55 with -c or -l.
56
57
58 ''-l''
59
60
61 Make the command a login shell. A - is prepended to the name
62 of the command to be executed.
63
64
65 ''-v''
66
67
68 Be a bit more verbose.
69
70
71 ''-w''
72
73
74 wait for command to complete. If -w and -s are used together
75 then __openvt__ will switch back to the controlling
76 terminal when the command completes.
77
78
79 ''--''
80
81
82 end of options to __openvt__.
83 !!NOTE
84
85
86 If __openvt__ is compiled with a POSIX (Gnu) getopt() and
87 you wish to set options to the command to be run, then you
88 must supply the end of options -- flag before the
89 command.
90 !!EXAMPLES
91
92
93 __openvt__ can be used to start a shell on the next free
94 VT, by using the command:
95
96
97 ''openvt bash''
98
99
100 To start the shell as a login shell, use:
101
102
103 ''openvt -l bash''
104
105
106 To get a long listing you must supply the --
107 separator:
108
109
110 ''openvt -- ls -l''
111 !!SEE ALSO
112
113
114 chvt(1), doshell(8),
115 login(1).
116 !!AUTHOR
117
118
119 Jon Tombs
120 -w idea from
121 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.