File: mesg.1

package info (click to toggle)
manpages-ja 0.5.0.0.20120606-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 25,964 kB
  • sloc: perl: 161; makefile: 116
file content (99 lines) | stat: -rw-r--r-- 4,063 bytes parent folder | download | duplicates (4)
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
.\" Copyright (c) 1987, 1990, 1993
.\"	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.
.\"
.\"	@(#)mesg.1	8.1 (Berkeley) 6/6/93
.\"
.\" Fri Mar 10 20:31:02 1995, modified for standard man macros,
.\" faith@cs.unc.edu
.\"
.\"
.\" "
.\" %FreeBSD: src/usr.bin/mesg/mesg.1,v 1.7 1999/08/28 01:03:59 peter Exp %
.\" $FreeBSD: doc/ja_JP.eucJP/man/man1/mesg.1,v 1.6 2001/05/14 01:07:26 horikawa Exp $
.\" Updated Wed May 11 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
.\"
.TH MESG 1 "10 March 1995" "Linux 1.2" "Linux Programmer's Manual"
.SH 名称
mesg \- 他ユーザからのメッセージを表示する (表示しない)
.SH 書式
.B mesg [ n ] [ y ]
.SH 解説
.B mesg
は、他ユーザからのメッセージの書き込みを許すかどうかを
決めるためのユーティリティです。
メッセージは、標準エラー出力と結びついている端末デバイスに出力されます。
書き込みが許可されていれば、
.BR talk (1)
.BR write (1)
などのプログラムを使って端末にメッセージを送ることができます。
.PP
伝統的に、デフォルトでは書き込みは許可されています。
しかし、ユーザーが様々なセキュリティリスクに敏感になるにつれ、
少なくとも最初のログインシェルではデフォルトでは書き込みを許可しない傾向があります。
自分の端末の設定を確実に行うためには、
.B mesg
をログインスクリプトで実行するべきです。
.PP
オプションは以下のとおりです。
.TP
.B n
メッセージを表示しません。
.B y
メッセージを表示します。
.PP
引数なしで起動された場合、
.B mesg
は現在のメッセージ表示の許可・不許可についての設定を、
標準エラー出力に出力します。
.PP
.TP
.B mesg
は以下のうちのいずれかを戻り値として返します。
.PP
.I "\ 0"
メッセージを表示します。
.I "\ 1"
メッセージを表示しません。
.I "\>1"
エラーが発生しました。
.SH 関連ファイル
.I /dev/[pt]ty[pq]?
.SH 関連項目
.BR biff (1),
.BR talk (1),
.BR write (1),
.BR wall (1),
.BR login (1),
.BR xterm (1)
.SH 歴史
.B mesg
コマンドは Version 6 AT&T UNIX から登場しました。