icon Top 9 categories map      RocketAware >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others

MSGS(1)                    OpenBSD Reference Manual                    MSGS(1)

     msgs - system messages and junk mail program

     msgs [-fhlpqr] [number] [-number]
     msgs [-s]
     msgs [-c] [-days]

     msgs is used to read system messages.  These messages are sent by mailing
     to the login `msgs' and should be short pieces of information which are
     suitable to be read once by most users of the system.

     The options available are as follows:

     -f          Do not say ``No new messages.''  This is useful in a .login
                 file since this is often the case here.

     -q          Queries whether there are messages, printing ``There are new
                 messages.'' if there are.  The command ``msgs -q'' is often
                 used in login scripts.

     -h          Print the first part of messages only.

     -r          Disables the ability to save messages or enter the mailer.
                 It is assumed that the PAGER environment is set to something

     -l          Causes only locally originated messages to be reported.

     num         A message number can be given on the command line, causing
                 msgs to start at the specified message rather than at the
                 next message indicated by your .msgsrc file.  Thus

                       msgs -h 1

                 prints the first part of all messages.

     -number     Start number messages back from the one indicated in the
                 .msgsrc file, useful for reviews of recent messages.

     -p          Pipe long messages through the program specified by the PAGER
                 environment variable. If PAGER is null or not defined,
                 more(1) is used.

     msgs is normally invoked each time you login, by placing it in the file
     .login (or .profile if you use sh(1)).  It will then prompt you with the
     source and subject of each new message.  If there is no subject line, the
     first few non-blank lines of the message will be displayed.  If there is
     more to the message, you will be told how long it is and asked whether
     you wish to see the rest of the message.  The possible responses are:

     y           Type the rest of the message.

     RETURN      Synonym for y.

     n           Skip this message and go on to the next message.

     -           Redisplay the last message.

     q           Drop out of msgs; the next time msgs will pick up where it

                 last left off.

     s           Append the current message to the file ``Messages'' in the
                 current directory; `s-' will save the previously displayed
                 message. A `s' or `s-' may be followed by a space and a file
                 name to receive the message replacing the default ``Mes-

     m           A copy of the specified message is placed in a temporary
                 mailbox and mail(1) is invoked on that mailbox.

     p           The specified message is piped through the program specified
                 by the PAGER environment variable. If PAGER is not defined,
                 more(1) is used.

     The commands `m', `p', and `s' all accept a numeric argument in place of
     the `-'.

     msgs keeps track of the next message you will see by a number in the file
     .msgsrc in your home directory.  In the directory /var/msgs it keeps a
     set of files whose names are the (sequential) numbers of the messages
     they represent.  The file /var/msgs/bounds shows the low and high number
     of the messages in the directory so that msgs can quickly determine if
     there are no messages for you.  If the contents of bounds is incorrect it
     can be fixed by removing it; msgs will make a new bounds file the next
     time it is run.

     The -s option is used for setting up the posting of messages.  The line

           msgs: "| /usr/bin/msgs -s"

     should be included in /etc/aliases (see newaliases(1))  to enable posting
     of messages.

     The -c option is used for performing cleanup on /var/msgs. An entry with
     the -c option should be placed in /etc/crontab to run every night.  This
     will remove all messages over 21 days old.  A different expiration may be
     specified on the command line to override the default.

     Within msgs you can also go to any specific message by typing its number
     when msgs requests input as to what to do.

     msgs uses the HOME and TERM environment variables for the default home
     directory and terminal type. If defined and non-null, the PAGER variable
     is invoked as the pagination program.

     /var/msgs/*  database
     ~/.msgsrc    number of next message to be presented

     mail(1),  more(1),  newaliases(1),  aliases(5)

     The msgs command appeared in 3.0BSD.

OpenBSD 2.6                     April 28, 1995                               2

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
FreeBSD Sources for msgs(1)
OpenBSD sources for msgs(1)

[Overview Topics]

Up to: Email Processing - Automatic processing, Archives, formatting for WWW, autoresponders

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > msgs.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments