|
|
1.1 root 1: .\" Copyright (c) 1987, 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)mesg.1 6.5 (Berkeley) 7/24/90
19: .\"
20: .Dd July 24, 1990
21: .Dt MESG 1
22: .Os BSD 4.4
23: .Sh NAME
24: .Nm mesg
25: .Nd Display (do not display) messages from other users
26: .Sh SYNOPSIS
27: .Nm mesg
28: .Op Cm n Li \&| Cm y
29: .Sh DESCRIPTION
30: The
31: .Nm mesg
32: utility allows a user to decide if other users may write
33: messages to his or her screen. Programs such as
34: .Xr talk 1 ,
35: .Xr write 1
36: and
37: .Xr echo 1
38: are social and display a message on the target user's terminal.
39: Sometimes this is inconvenient.
40: .Pp
41: Options:
42: .Tw Ds
43: .Tp Cm n
44: Disallow messages, providing peace, and informing the contacting
45: party
46: that `Your party is refusing messages'.
47: .Tp Cm y
48: Allow messages to be displayed.
49: .Tp
50: .Pp
51: If no arguments are given,
52: .Nm mesg
53: displays the present message status.
54: .Pp
55: The
56: .Nm mesg
57: utility exits with one of the following values:
58: .Dw Ds
59: .Dp Li \&\ 0
60: messages are allowed
61: .Dp Li \&\ 1
62: messages are not allowed
63: .Dp Li \&\-\&1
64: An error has occurred.
65: .Dp
66: .Sh FILES
67: .Dw /dev/[pt]ty[pq]?
68: .Di L
69: .Dp Pa /dev/[pt]ty[pq]?
70: .Dp
71: .Sh SEE ALSO
72: .Xr write 1 ,
73: .Xr talk 1 ,
74: .Xr echo 1 ,
75: .Xr biff 1
76: .Sh HISTORY
77: A
78: .Nm mesg
79: command appeared in Version 6 AT&T Unix.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.