elmalias(1)

 

elmalias(1)

 

%a

The alias name.

 

%c

The comment ®eld.

 

%l

The lastname ®eld.

 

%n

The fullname value.

 

%t The alias type: person, group, or unknown.

 

%v The address-list ®eld.

-n

Change the display to address-listfollowed by fullname, if any, in parentheses.

-r

Report an error if a name in alias-name-listdoes not correspond to an alias in the

 

database. Display a message for each unknown name and exit with a nonzero status.

-s

Use the system alias database only, unless -uis also speci®ed.

-u

Use the user alias database only, unless -sis also speci®ed.

-v

Use a verbose output format. Change the display to alias name, followed by address-

 

list, followed by fullname, if any, in parentheses.

-V

Use a very verbose, multiline output format with the following titles, corresponding to

 

the format codes of the -foption. If a ®eld is empty, the title is omitted.

Alias:

Address:

Type:

Name:

Last Name:

Comment:

EXIT STATUS

elmalias sets the following exit status values:

0Normal completion.

<>0 An error occurred. You may have speci®ed:

An invalid option.

The -eoption without an alias-name-list.

The -foption without a format.

The -roption with an unknown alias name in alias-name-list.

EXAMPLES

Consider a user database that contains the following entries:

# sample alias file

mom = My Mommy, Work: x2468 = my_mother@a.computer

dad,father,pop = Father; Dear, Work: x1357 = host!otherhost!dad parents = The Folks = mom dad parent@host

siblings = The Kids = brother1 brother2

sister

brother1 = Son; First = bro1@kid.computer

Since brother2 and sister do not refer to alias entries, they are typed as unknown. elmalias with no options or operands produces the following output.

my_mother@a.computer host!otherhost!dad host!otherhost!dad host!otherhost!dad mom,dad,parent@host brother1,brother2,sister bro1@kid.computer

elmalias -vproduces the alias names, address, and full name, as follows:

HP-UX Release 11i: December 2000

− 2 −

Section 1235

e