HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
e
elm(1) elm(1)
International Code Set Support
Single- and multibyte character code sets are supported.
EXAMPLES
Message Mode Example
To send a message without loading the main
elm mail-processing program, use the simple command form
consisting of the name of the program followed by the recipient’s login name and optional address.
elm
prompts for subject and copies, then starts an editor so you can compose the message (user responses are in
italic type):
$ elm j_doe
To: doe (John Doe)
Subject:
this is a test
Copies To: ...
...invokes editor, you compose message, then...
Your options now are:
a)ttachments e)dit message edit h)eader s)end it f)orget it.
What is your choice? s
mail sent!
If you "forget" the message, it is saved in $HOME/Canceled.mail
.
File Mode with Redirection
To send a file by use of command-line redirection, use a command like:
$ elm j_doe < help.c
which reads file help.c and sends it with the default subject.
File Mode with a Pipe
To mail the output of a command and include a subject line:
$ ls -a | elm -s "Directory Listing" j_doe
WARNINGS
Using two separate mail programs to access the same mail file simultaneously (usually inadvertently from
two separate windows) can cause unpredictable results.
The length of the subject string (used with the -s command line option) and filenames (used with the
-f
and -i command line options) is limited to 255 characters. If the length exceeds this limit, the strings will
be truncated to 255 characters.
AUTHOR
elm was developed by Hewlett-Packard Company.
FILES
$HOME/.elm Directory for the user’s elm alias, configuration, header,
and other files
$HOME/.elm/aliases User alias database data table
$HOME/.elm/aliases.dir User alias database directory table
$HOME/.elm/aliases.pag User alias database hash table
$HOME/.elm/aliases.text User alias source text
$HOME/.elm/elmheaders User-defined additional headers
$HOME/.elm/elmrc User configuration file
$HOME/Canceled.mail Canceled message in noninteractive use.
/tmp/alias. pid Temporary file for deleting alias
/tmp/form. pid Editor buffer for forms message
/tmp/mbox. loginname Temporary mailbox for user logname
/tmp/print. pid Temporary file for printing message
/tmp/snd.pid Outgoing mail message edit buffer
/tmp/sndh. pid Outgoing mail header edit buffer
/usr/lib/nls/msg/C/elm.cat Location of the message catalog
/usr/share/lib/elm/elmrc-info Comment file for $HOME/.elm/elmrc file
/var/mail Directory for incoming mail;
it must have mode 755 and group ID mail
HP-UX 11i Version 1: September 2005 − 29 − Hewlett-Packard Company Section 1−−241