For
more complicated situations such as this, a shell script might be required.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
882 | Chapter 23: The K (Database-Map) Configuration Command
23.2 The K Configuration Command
The K configuration command is used to associate a symbolic name witha databasemap
type. The symbolic name will later be used in the RHS of rules. The form of the
K command looks like this:
Kname type args
The name is the symbolic name, the type is the kind of database map to use, and the
args specifies its location and properties. We describe each in turn.
23.2.1 The name
The name portion of the K configuration command immediately follows the K.
Whitespace between the K and the name is optional:
K name type args
?†‘
optional whitespace
The name must begin with a letter or digit and can contain only letters, digits, and
the underscore character:
K local_hosts ?†? good
K $andcents ?†? bad
The case of the letters in name does not matter. All names are converted to lowercase
before they are stored:
K LOCAL_Hosts
K local_hosts ?†? the same
If you begin a name with a bad character, the following error will be printed and that
K line will be ignored:
configfile: line num: readcf: config K line: no map name
If a bad character appears in the middle of a name, the part preceding the bad character
will be taken as the name, and the part following the bad character will be taken
as the type.
Pages:
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556