19b50d902SRodney W. Grimes.\" Copyright (c) 1987, 1990, 1993 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 139b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 149b50d902SRodney W. Grimes.\" without specific prior written permission. 159b50d902SRodney W. Grimes.\" 169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 199b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 269b50d902SRodney W. Grimes.\" SUCH DAMAGE. 279b50d902SRodney W. Grimes.\" 2817b3efd4STim J. Robbins.Dd May 5, 2002 299b50d902SRodney W. Grimes.Dt MESG 1 309b50d902SRodney W. Grimes.Os 319b50d902SRodney W. Grimes.Sh NAME 329b50d902SRodney W. Grimes.Nm mesg 339b50d902SRodney W. Grimes.Nd display (do not display) messages from other users 349b50d902SRodney W. Grimes.Sh SYNOPSIS 357501dcaaSPhilippe Charnier.Nm 369b50d902SRodney W. Grimes.Op Cm n | Cm y 379b50d902SRodney W. Grimes.Sh DESCRIPTION 389b50d902SRodney W. GrimesThe 397501dcaaSPhilippe Charnier.Nm 4017b3efd4STim J. Robbinsutility is invoked by a user to control write access others 4117b3efd4STim J. Robbinshave to a terminal device. 429b50d902SRodney W. GrimesWrite access is allowed by default, and programs such as 439b50d902SRodney W. Grimes.Xr talk 1 449b50d902SRodney W. Grimesand 459b50d902SRodney W. Grimes.Xr write 1 469b50d902SRodney W. Grimesmay display messages on the terminal. 479b50d902SRodney W. Grimes.Pp 4817b3efd4STim J. RobbinsThe first terminal device in the sequence of devices associated with standard 4917b3efd4STim J. Robbinsinput, standard output and standard error is affected. 5017b3efd4STim J. Robbins.Pp 51f88e6136SPhilippe CharnierThe following options are available: 52f88e6136SPhilippe Charnier.Bl -tag -width indent 539b50d902SRodney W. Grimes.It Cm n 54f88e6136SPhilippe CharnierDisallow messages. 559b50d902SRodney W. Grimes.It Cm y 56f88e6136SPhilippe CharnierPermit messages to be displayed. 579b50d902SRodney W. Grimes.El 589b50d902SRodney W. Grimes.Pp 599b50d902SRodney W. GrimesIf no arguments are given, 607501dcaaSPhilippe Charnier.Nm 6117b3efd4STim J. Robbinsdisplays the present message status to the standard output. 62a866e170SRuslan Ermilov.Sh EXIT STATUS 639b50d902SRodney W. GrimesThe 647501dcaaSPhilippe Charnier.Nm 659b50d902SRodney W. Grimesutility exits with one of the following values: 669b50d902SRodney W. Grimes.Pp 672914feebSUlrich Spörlein.Bl -tag -width flag -compact -offset indent 689b50d902SRodney W. Grimes.It Li "\ 0" 699b50d902SRodney W. GrimesMessages are allowed. 709b50d902SRodney W. Grimes.It Li "\ 1" 719b50d902SRodney W. GrimesMessages are not allowed. 724153d359SMike Pritchard.It Li ">1" 739b50d902SRodney W. GrimesAn error has occurred. 749b50d902SRodney W. Grimes.El 756c7216dfSRuslan Ermilov.Sh EXAMPLES 766c7216dfSRuslan ErmilovDisallow messages from other users to the current terminal: 776c7216dfSRuslan Ermilov.Pp 786c7216dfSRuslan Ermilov.Dl "mesg n" 796c7216dfSRuslan Ermilov.Pp 806c7216dfSRuslan ErmilovAllow messages from other users to 816c7216dfSRuslan Ermilov.Pa ttyp1 826c7216dfSRuslan Ermilov(assuming you are also logged in on that terminal): 836c7216dfSRuslan Ermilov.Pp 846c7216dfSRuslan Ermilov.Dl "mesg y </dev/ttyp1" 8517b3efd4STim J. Robbins.Sh COMPATIBILITY 8617b3efd4STim J. RobbinsPrevious versions of the 8717b3efd4STim J. Robbins.Nm 8817b3efd4STim J. Robbinsutility wrote the message status to the standard error output and 8917b3efd4STim J. Robbinsaffected the terminal attached to standard error without first trying the 9017b3efd4STim J. Robbinsstandard input or output devices. 919b50d902SRodney W. Grimes.Sh SEE ALSO 929b50d902SRodney W. Grimes.Xr biff 1 , 939b50d902SRodney W. Grimes.Xr talk 1 , 94fc414536SRuslan Ermilov.Xr wall 1 , 959b50d902SRodney W. Grimes.Xr write 1 9617b3efd4STim J. Robbins.Sh STANDARDS 9717b3efd4STim J. RobbinsThe 9817b3efd4STim J. Robbins.Nm 9917b3efd4STim J. Robbinsutility conforms to 10017b3efd4STim J. Robbins.St -p1003.1-2001 . 1019b50d902SRodney W. Grimes.Sh HISTORY 1029b50d902SRodney W. GrimesA 1037501dcaaSPhilippe Charnier.Nm 1049b50d902SRodney W. Grimescommand appeared in 105b8923d4cSWolfram Schneider.At v1 . 106