16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

Example<br />

hold<br />

mail<br />

preserve<br />

reply<br />

Reply<br />

respond<br />

Respond<br />

shell<br />

visual<br />

!<br />

If a line in a startup file contains an error or an incorrect command, the rest of the<br />

startup file is ignored. mailx ignores blank lines in a startup file.<br />

The following example composes and sends a message to several users. Items<br />

shown in italics are output by mailx itself.<br />

mailx JEAN<br />

Subject: Greetings<br />

This is just a short note to say hello.<br />

~c JUAN JOHN JOHANN<br />

~.<br />

On the first line, the message is just addressed to jean. The ~c line adds more<br />

people who will receive copies of the message.<br />

Environment Variables<br />

A large number of variables are used to control the behavior of mailx. These<br />

environment variables are divided into two classes: those that always come from<br />

the external environment, and those that may be set up in either the external<br />

environment or within a mailx session.<br />

The following variables always come from the external environment; they can be<br />

changed inside a mailx session, except where marked.<br />

DEAD<br />

Gives the name of a file that can be used as the dead.letter file. Partial<br />

messages are saved in this file if an interrupt or error occurs during creation<br />

of the message or delivery. By default, the name of this file is<br />

$HOME/dead.letter.<br />

EDITOR<br />

Gives a command, possibly with options, that is run when using the<br />

command mode edit or the input mode ~e. The default is ed (see “ed —<br />

Use the ed line-oriented text editor” on page 247 for more information on<br />

ed).<br />

HOME Gives the name of your home directory. This cannot be changed inside<br />

mailx .<br />

LISTER<br />

Gives a command, possibly with options, that mailx invokes when<br />

displaying the content of the folder directory for the folders subcommand.<br />

If this variable is null or unset, mailx uses ls. By default, this variable is<br />

unset.<br />

LOGNAME<br />

Gives your login name.<br />

mailx<br />

Chapter 2. Shell command descriptions 385

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!