Prev | Current Page 1562 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

In the case of the /etc/passwd file, a database declaration
might look like this:
Kuid text -z: -k2 -v0 /etc/passwd # map to convert user-id to login name
The default is whitespace for the text type. It is a comma for the netinfo type.
For the ldap type, a -z switch specifies the character to use to separate values when
building the resulting string when multiple attribute values are returned.
23.4 Use $( and $) in Rules
The information in database maps is accessed in the RHS of rules. This is the basic
syntax:
$(name key $)
The key is looked up in the database map whose symbolic name (declared with the K
configuration command, ?§23.2 on page 882) is name. If th ekey is found, the entire
expression, including the $( and $), is normally replaced withth e value returned for
that key.* Any suffix, as specified withth e -a switch(?§23.3.2 on page 887) in the K
configuration declaration for name, is appended to the data. If the key is not found,
the entire expression is replaced with key. If th e$) is omitted, all tokens up to but
excluding the tab and comment, or end-of-line if there is no comment, are taken as
the key. To illustrate one use for $( and $), see the following rule:
R$- . uucp $: $(uucp $1.uucp $)
and the following K command:
Kuucp hash /etc/mail/uucp
This associates the symbolic name uucp witha hash-type file called /etc/mail/uucp.


Pages:
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
życzenia ślubne gustowne meble katowice felgi aluminiowe poznań katalog firm katalog stron