Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (p - r) runcat(1)
NAME
runcat - Invokes the mkcatdefs utility and pipes the resulting message-catalog source data to the
gencat utility
SYNOPSIS
runcat catalog_name source_le catalogle
FLAGS
Operands
catalog_name is the name of the message catalog to be used by the mkcatdefs utility to gen-
erate the name of the symbolic denition le.
source_file identies the message text containing symbolic identiers.
catalogfile is the name of the catalog le to be created by the gencat utility.
DESCRIPTION
The runcat utility invokes the mkcatdefs utility and pipes the resulting message-catalog source
data to the gencat utility.
source_le contains the message text containing symbolic identiers. The mkcatdefs utility
uses the catalog_name argument to generate the name of the symbolic denition le by adding
_msg.h to the end of the catalog_name value. mkcatdefs also uses the catalog_name value to
generate the symbolic name for the catalog le by adding MF_ to the beginning of the
catalog_name value.
The symbolic denition le must be included in your application. The symbolic name for the
catalog le can be used in library functions such as the catopen function. The catalogle argu-
ment is the name of the catalog le created by the gencat utility. If you do not specify this argu-
ment, the gencat utility appends .cat to the end of the catalog_name value. This lename can
also be used in the catopen library function.
EXAMPLES
To generate a catalog named test.cat from a message source le named test.msg,enter:
runcat test test.msg
DIAGNOSTICS
The runcat utility generates these error messages:
Usage: runcat catname srcfile [catfile]\n
Can´t open \%s\n
RELATED INFORMATION
Commands: gencat(1), mkcatdefs(1).
STANDARDS CONFORMANCE
The runcat() utility is an extension to the XPG4 specication.
527188-003 Hewlett-Packard Company 763