Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (5547 KB)
msgid(1M)NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO NAME
SYNOPSIS
DESCRIPTIONThe msgid utility generates message IDs. A message ID is a numeric identifier that, with a high probability, uniquely identifies a message. The probability of two distinct messages having the same ID is about one in a million. Specifically, the message ID is a hash signature on the message's unexpanded format string, generated by STRLOG_MAKE_MSGID() as defined in <sys/strlog.h>. syslogd(1M) is a simple filter that takes strings as input and produces those same strings, preceded by their message IDs, as output. Every message logged by syslogd(1M) includes the message ID. The message ID is intended to serve as a small, language-independent identifier. EXAMPLESExample 1 Using the msgid command to generate a message IDThe following example uses the msgid command to generate a message ID for the echo command.
Example 2 Using the msgid command to generate a message catalogThe following example uses the msgid command to enumerate all of the messages in the binary ufs, to generate a message catalog.
ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOSunOS 5.9 Last Revised 9 Oct 1998NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO |
||||||