GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MESG (1)

NAME

mesg - display (do not display) messages from other users

CONTENTS

Synopsis
Description
Exit Status
Examples
Compatibility
See Also
Standards
History

SYNOPSIS

mesg [n | y]

DESCRIPTION

The mesg utility is invoked by a user to control write access others have to a terminal device. Write access is allowed by default, and programs such as talk(1) and write(1) may display messages on the terminal.

The first terminal device in the sequence of devices associated with standard input, standard output and standard error is affected.

The following options are available:
n Disallow messages.
y Permit messages to be displayed.

If no arguments are given, mesg displays the present message status to the standard output.

EXIT STATUS

The mesg utility exits with one of the following values:

0
  Messages are allowed.
1
  Messages are not allowed.
>1 An error has occurred.

EXAMPLES

Disallow messages from other users to the current terminal:

    mesg n

Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal):

    mesg y </dev/ttyp1

COMPATIBILITY

Previous versions of the mesg utility wrote the message status to the standard error output and affected the terminal attached to standard error without first trying the standard input or output devices.

SEE ALSO

biff(1), talk(1), wall(1), write(1)

STANDARDS

The mesg utility conforms to -p1003.1-2001.

HISTORY

A mesg command appeared in AT&T v1 .
Search for    or go to Top of page |  Section 1 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.