1mesg(1)                          User Commands                         mesg(1)
2
3
4

NAME

6       mesg - permit or deny messages
7

SYNOPSIS

9       mesg [-n | -y | n | y]
10
11

DESCRIPTION

13       The  mesg  utility will control whether other users are allowed to send
14       messages via write(1),  talk(1),  or  other  utilities  to  a  terminal
15       device. The terminal device affected is determined by searching for the
16       first terminal in the sequence  of  devices  associated  with  standard
17       input, standard output, and standard error, respectively. With no argu‐
18       ments, mesg reports the current state without  changing  it.  Processes
19       with  appropriate privileges may be able to send messages to the termi‐
20       nal independent of the current state.
21

OPTIONS

23       The following options are supported:
24
25       -n|n     Denies permission to other users to send message to the termi‐
26                nal. See write(1).
27
28
29       -y|y     Grants  permission to other users to send messages to the ter‐
30                minal.
31
32

ENVIRONMENT VARIABLES

34       See environ(5) for descriptions of the following environment  variables
35       that affect the execution of mesg: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES,
36       and NLSPATH.
37

EXIT STATUS

39       The following exit values are returned:
40
41       0     if messages are receivable.
42
43
44       1     if messages are not receivable.
45
46
47       2     on error.
48
49

FILES

51       /dev/tty*      terminal devices
52
53
54       /dev/pts/*     terminal devices
55
56

ATTRIBUTES

58       See attributes(5) for descriptions of the following attributes:
59
60
61
62
63       ┌─────────────────────────────┬─────────────────────────────┐
64       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │Availability                 │SUNWcsu                      │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │Interface Stability          │Standard                     │
69       └─────────────────────────────┴─────────────────────────────┘
70

SEE ALSO

72       talk(1), write(1), attributes(5), environ(5), standards(5)
73
74
75
76SunOS 5.11                        31 Oct 1997                          mesg(1)
Impressum