forked from bitstreamout/showconsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
showconsole.8
83 lines (83 loc) · 1.8 KB
/
showconsole.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.\"
.\" Copyright 2000 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany.
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.TH SHOWCONSOLE 8 "Jan 14, 2016" "Version 2.12" "The SUSE boot concept"
.UC 8
.SH NAME
Showconsole \- determines the real tty of stdin
.br
Setconsole \- redirect system console output to a tty
.SH SYNOPSIS
.\"
.B showconsole
.RI [ -n ]
.PP
.BR setconsole\ [ -r | /dev/tty<xy> ]
.SH DESCRIPTION
.B showconsole
determines the real character device of
the current system console.
This can be used on
.I /dev/console
as current character device to
get the real
character device back.
.PP
With an terminal device as argument
.B setconsole
redirects the output that would have gone to
.I /dev/console
or
.I /dev/tty0
to the given terminal.
Without any argument or the option
.B
the
.B setconsole
undo any redirection.
.\"
.SH OPTIONS
.TP
.B \-n
Return the major and minor device numbers instead of
the device file name. This can be used to asked the
kernel for the major and minor device numbers of a not
existing device file in
.IR /dev .
.\"
.SH BUGS
.B showconsole
needs a mounted
.B /proc
file system and tries to set the controlling
tty to
.B stdin
if no controlling tty is found. After reading
.B /proc
the status of the controlling tty is restored
to avoid problems with getty processes.
.SH FILES
.TP
.I /proc/<pid of showconsole>/stat
the stat file of the
.B showconsole
process.
.TP
.I /dev/console
the system console.
.\"
.SH SEE ALSO
.BR blogd (8),
.BR console (4),
.BR tty (4),
.BR proc (5).
.SH COPYRIGHT
2000 Werner Fink,
2000 SuSE GmbH Nuernberg, Germany.
.SH AUTHOR
Werner Fink <[email protected]>