Sun Microsystems Sun Workstation 100U System Manager's Manual page 345

Table of Contents

Advertisement

Sendmalllnatallation and Operation Guld.
11
When sendinl, the
Ih, lu,
aDd
I.
macros let set to the hos&, user, and bome
directory (if local) 01 the recipient. The 8nt two are set Irom the
S.
and
I.
part 01 the
rewriting rules, respectively.
The $p and $t macrOl are used to create unique strinp (e.I., lor the "Message-
Id:" field). The $1 macro
is
set to the queue id on this host; if put into the timestamp
line it can be extremely use'ul 'or trackinl messales. The'7 macro is set to the id or
the terminal 01 the sender (if known); some systems like to put this in the Unix "From"
line. The $v macro is set to be the version number or .endmtJil; this is normally put in
timestamps and haa been proven extremely uselul lor debugginl. The
Iw
macro
is
set
to the name 01 this host if it
CaD
be
determined. The $c Beld
is
set to the "hop count,"
i.e., the number 01 times this message has been processed. This can be determined by
the -h flag on the command line or by countinl the timestamps in the message.
The $1' and $. fields are set to the protocol used to communicate with .endmtJil
and the sending hostname; these are not supported in the current version.
Conditionals can be specified usinl the syntax:
$?x text! $1 text2 $.
This interpolates
lezU if
the macro
Ix
is set, and
lezl'
otherwise. The "else"
('1)
clause may
be
omitted.
&.1.1. Speelal c1aaea
The class
$==w
is set to be the set
01
aU
names this host is known by. This can
be used to delete local h08tnames.
&.1.3. The left hand .Ide
The left hand side 01 rewritinl rules contains a pattern. Normal words are simply
matched directly. Metasyntax is introduced usinl a dollar sip. The metasymbols are:
$.
Match zero or more totens
$+
Match one or more tot ens
$-
Match exactly one token
$==z
Match any token in
class
%
$- z
Match any toten not in
class
%
If
any of these match, they are 88silned
to
the symbol $n lor replacement on the risht
hand side, where
n
is the index in the LHS. For example, if the LHS:
$-:$+
is applied to the input:
UCBARP A:eric
the rule will match,
and
the values passed to the RHS will
be:
$1 UCBARPA
$2
eric
5.1.4. The right hand .tde
When the right hand side
01
a rewritinl rule matches, the input
is
deleted and
replaced by the right hand side. Tokens are copied directly Irom the RHS unless they
are begin with a dollar sip. Metasymbols are:
Vel'lton 4.1
Lad Mod 8/11/81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents