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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mailx<br />

Description<br />

Options<br />

mailx helps you read electronic mail messages. It can also send messages to<br />

users on your system, but it has no built-in facilities for sending messages to other<br />

systems.<br />

The command line:<br />

mailx [options] user user user ...<br />

sends a mail message to the given users. If you do not specify any users on the<br />

command line, mailx lets you read incoming mail interactively. For more<br />

information, see sendmail.<br />

In a doublebyte locale, aliases, variables, and addresses can contain doublebyte<br />

characters.<br />

This description of mailx is divided into several sections:<br />

v Options<br />

v General overview<br />

v <strong>Command</strong>-mode subcommands<br />

v Input-mode subcommands<br />

v Startup files<br />

v Example<br />

v Environment variables<br />

v Files<br />

v Exit values<br />

v Portability<br />

v Related Information<br />

You can use the following options when reading messages:<br />

–e Checks to see if you have any messages waiting to be read. With this<br />

option, nothing is displayed. If you have waiting messages, mailx exits with<br />

a successful status return; otherwise, mailx exits with a failure return.<br />

–f filename<br />

Looks for messages in the specified file instead of in your current mailbox.<br />

If you do not specify filename, mailx reads messages from $HOME/mbox.<br />

–H Displays only the header summary of a message.<br />

–N Does not display the header summary of messages.<br />

–u user<br />

Looks for messages in the system mailbox of the specified user. This works<br />

only if you have read permission on the user’s system mailbox.<br />

You can use the following options only when sending messages:<br />

–F Records your message in a file with the same name as the first user<br />

specified on the command line. This option overrides the record variable, if<br />

it has been set.<br />

–h number<br />

Indicates how many “hops” a message has already made from one<br />

machine to another (in a network of machines). This option is not intended<br />

for most users; network mail software uses the option to prevent infinite<br />

372 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!