Displaying messages outside of an application program
The following commands allow you to display messages outside of an application program. These commands are specific to AIX®.
- dspcat
- Displays the messages contained in the specified message catalog. The following example displays
the messages located in the x.cat message source file:
dspcat x.cat
- dspmsg
- Displays a single message from a message catalog. The following example displays the message
located in the x.cat message source file that has the ID number of
1
and the set number of2
:dspmsg x.cat -s 2 1
You can use the dspmsg command in shell scripts when a message must be obtained from a message catalog.