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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" from: @(#)rwhod.8 6.5 (Berkeley) 3/16/91
.\" $Id: rwhod.8,v 1.16 2000/07/30 23:57:06 dholland Exp $
.\"
.\" Japanese Version Copyright (c) 2000 Yuichi SATO
.\" all rights reserved.
.\" Translated Thu Nov 2 18:23:49 JST 2000
.\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\"
.\"WORD: load average ʿ
.\"WORD: byte order Хȥ
.\"
.Dd May 13, 1997
.Dt RWHOD 8
.Os "Linux NetKit (0.17)"
.Sh ̾
.Nm rwhod
.Nd ƥॹơ
.Sh
.Nm rwhod
.Op Fl bpa
.Op Fl u Ar user
.Sh
.Nm rwhod
ϡ
.Xr rwho 1
.Xr ruptime 1
ץǻѤǡ١륵ФǤ롣
ΥФαѤϡͥåȥ
.Em ֥ɥ㥹
åѤǤ뤳ȤȤƤ롣
.Pp
.Nm rwhod
ϡơκ¦ȤƤ⡢¦ȤƤư롣
κ¦ȤƤϡƥ֤Ū䤤碌
ͥåȥ˥֥ɥ㥹Ȥ륹ơå롣
¦ȤƤϡ¾
.Nm rwhod
ФΥơåꡢǧ塢
.Pa /var/spool/rwho
ǥ쥯ȥ˺줿ե˵Ͽ롣
.Pp
Фϡ``rwho'' ӥλǻؼƤݡȤȤä
åԤ
.Xr services 5
Ȥ뤳ȡ
.Pp
.Fl b
ե饰ꤵ줿硢
ͥåȤΤ褦ʥ֥ɥ㥹ȥեΤߤȤ롣
.Fl p
ե饰ꤵ줿硢
point-to-point ΥեΤߤȤ롣
.Fl a
ե饰ꤵ줿硢ޤϥե饰ꤵʤ硢
ƤΥեȤ롣
.Pp
.Fl u
ե饰ꤵ줿硢
rwhod root ǤϤʤꤵ줿桼ȤƼ¹Ԥ롣
.Pp
åϰʲηǤ롣
.Bd -literal -offset indent
struct outmp {
char out_line[8]; /* tty ̾ */
char out_name[8]; /* 桼 ID */
long out_time; /* */
};
struct whod {
char wd_vers;
char wd_type;
char wd_fill[2];
int wd_sendtime;
int wd_recvtime;
char wd_hostname[32];
int wd_loadav[3];
int wd_boottime;
struct whoent {
struct outmp we_utmp;
int we_idle;
} wd_we[1024 / sizeof (struct whoent)];
};
.Ed
.Pp
ƤΥեɤϡ˥ͥåȥХȥѴ롣
ʿ٤
.Xr w 1
ץˤäƷ졢
Ф 5, 10, 15 ʬֳ֤ʿ٤ɽ
ʿ٤ 100 ݤɽ롣
Ѥۥ̾ϡ
.Xr gethostname 2
ƥॳˤä֤줿Τǡɥᥤ̾Ͼά롣
åκǸˤϡåޥ˥Ƥ
桼ξޤޤƤ롣
ξˤϡɥǤʤü饤
.Xr utmp 5
ȥü饤ǸʸƤÿäƤ롣
.Pp
.Xr rwho
Ф˼åϡ
.Xr rwho
ФΥݡȤ줿ΤǤʤС˴롣
ˡåǻꤵ줿ۥ̾ɽǤʤ
.Tn ASCII
ʸޤǤ⡢å˴롣
.Nm rwhod
˼줿ͭʥåϡǥ쥯ȥ
.Pa /var/spool/rwho
ˤ
.Pa whod.hostname
Ȥե롣
Υեˤϡ
ǿΥåΤߤեޥåȤdzǼƤ롣
.Pp
ơåϡ 3 ʬ 1 롣
.Nm rwhod
ϥƥΥ֡Ȼ 30 ʬ˺Ʒ롣
ʤʤ顢(Linux ʳ) ƥˤϡ
֡Ȼη˿ѤΤץǤϤʤ
ƥ¸ߤ뤿Ǥ롣
.Sh Ϣ
.Xr rwho 1 ,
.Xr ruptime 1
.Sh Х
ͥåȥ֤ǥơѤˡɬפǤ롣
ФǤͥåȥ̿ԤƤˡ
ޥƤȲᤷƤޤȤ롣
.Sh
.Nm
ޥɤ
.Bx 4.2
о줷
|