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 />

loops (the same message cycling through a sequence of machines without<br />

ever getting to its intended destination).<br />

–r address<br />

Passes the given address to network mail software. If this option is present,<br />

it disables all input mode commands. Again, this option is not intended for<br />

most users.<br />

–s subject<br />

Uses the given subject string in the Subject heading line of the message. If<br />

the subject contains spaces or tab characters, the string should be<br />

enclosed in double quotes or single quotes. If you specify this option on the<br />

command line, mailx does not prompt you to enter a subject line when you<br />

type in the text of the message. The subject accepts at most<br />

LINE_MAX-10(2038) bytes. Any subjects longer than that will be truncated<br />

at 2038.<br />

–U Converts the address from <strong>UNIX</strong>-to-<strong>UNIX</strong> Copy Program (UUCP) style to<br />

Internet Protocol standards. This option overrides the effect of the conv<br />

variable.<br />

This option is not supported.<br />

You can use these options for both sending and reading messages:<br />

–i Ignores interrupts (for example, from pressing or ).<br />

–n Does not initialize your mailx session from the system’s /etc/mailx.rc file.<br />

General Overview<br />

This section describes the default behavior of mailx.<br />

The simplest command to send a message is:<br />

mailx address address address ...<br />

where each address names someone who is to receive the message. The simplest<br />

kind of address is the login name of someone else who uses your shell.<br />

You can also send messages as input to commands. To do this, use an address<br />

that consists of a pipe symbol (|) followed by a command line that invokes the<br />

appropriate command; enclose this whole address in single quotes. For example:<br />

mailx ROBIN ’|cat >save’<br />

mails a message to ROBIN and also copies the message into a file called save.<br />

mailx<br />

After you type in the command to send a message, mailx asks you to enter the<br />

subject of the message (a brief description of what the message is about), and then<br />

lets you type in the text of the message. This brief description can be up to 256<br />

characters long. Your message can consist of any number of lines, and may include<br />

blank lines. When you finish entering the message, type a line consisting only of a<br />

tilde (~), followed by a period (.); then press the enter key. This tells mailx that the<br />

message is ready to be sent.<br />

mailx puts the completed message into a file called the recipient’s system mailbox.<br />

The message stays in the system mailbox until the recipient asks to read the<br />

message. At that point, the message is obtained from the system mailbox and<br />

displayed on the recipient’s workstation. The message is then saved in the<br />

recipient’s personal mailbox. Since this is usually a file named mbox in the<br />

Chapter 2. Shell command descriptions 373

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

Saved successfully!

Ooh no, something went wrong!