HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
e
elmalias(1) elmalias(1)
%a The alias name.
%c The comment field.
%l The lastname field.
%n The fullname value.
%t The alias type: person, group,or
unknown.
%v The address-list field.
-n Change the display to address-list followed by fullname, if any, in parentheses.
-r Report an error if a name in alias-name-list does 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
-u is also specified.
-u Use the user alias database only, unless
-s is also specified.
-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 -f option. If a field is empty, the title is omitted.
Alias:
Address:
Type:
Name:
Last Name:
Comment:
EXIT STATUS
elmalias sets the following exit status values:
0 Normal completion.
<>0 An error occurred. You may have specified:
• An invalid option.
• The -e option without an alias-name-list.
• The
-f option without a format.
• The -r option 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 -v
produces the alias names, address, and full name, as follows:
Section 1−−244 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005