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.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

might decide to hold a message if you read it, but decide not to act upon it<br />

immediately. If refs is not specified, the current message is held. If any of<br />

the specified messages have been marked as deleted, the hold<br />

subcommand overrides that and still retains the messages. Subsequent<br />

delete, dp, and dt commands during the same mailx session can delete<br />

files marked for retention. See also preserve and the variables hold and<br />

keepsave.<br />

i[f] code mailx subcommands | [el[se] mailx subcommands] | [en[dif]]<br />

Is primarily intended for use in startup files. The code must be the character<br />

r or s. If it is r, the first set of mailx subcommands are executed if mailx is<br />

in receive mode, and the second set if mailx is in send mode. If code is s,<br />

the opposite is true. The else part is optional. See “Startup Files” on page<br />

384.<br />

ig[nore] [header ...]<br />

Is the same as the discard subcommand.<br />

l[ist] Displays the names of all command-mode subcommands.<br />

m[ail] address ...<br />

Sends a message to the specified recipients. mailx goes into input mode to<br />

let you enter the text of the message.<br />

mb[ox] [refs]<br />

Indicates that the given messages are to be saved in your mbox (personal<br />

mailbox) when mailx quits normally (that is, through the quit command as<br />

opposed to exit).<br />

n[ext] [refs]<br />

Goes to the next message in the mailbox that appears in the list of refs. For<br />

example:<br />

n user<br />

goes to the next message from the specified user.<br />

pi[pe] [[refs] command]<br />

Pipes the messages given by refs through the specified shell command.<br />

These messages are considered read. If refs is not specified, the current<br />

message is used. If no command is specified, mailx uses the command<br />

specified by the cmd variable. See “Environment Variables” on page 385. If<br />

the page variable has a value, a form feed character is sent into the pipe<br />

after every message.<br />

The subcommand | [refs] [command] is equivalent to pipe.<br />

pre[serve] [refs]<br />

Is the same as the hold subcommand.<br />

mailx<br />

P[rint] [refs]<br />

Displays the specified messages on the screen. If refs is not specified, the<br />

current message is displayed. All header fields are displayed; the discard,<br />

ignore and retain subcommands do not affect Print. If the crt variable is<br />

set to an integer, messages with more lines than that integer are<br />

″paginated″ using the command specified by the PAGER variable.<br />

p[rint] [refs]<br />

Displays the specified messages on the screen. If refs is not specified, the<br />

current message is displayed. Header fields specified by discard, ignore<br />

and retain subcommands affect print. If the crt variable is set to an integer,<br />

Chapter 2. Shell command descriptions 379

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

Saved successfully!

Ooh no, something went wrong!