home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: mailalias Chapter 2
UNIX Commands
Next: Reference: make
 

mailx



mailx

 [

options

] [

users

]

Read mail, or send mail to other users . For a summary of commands, type ? in command mode (e.g., when reading mail) or ~? in input mode (e.g., when sending mail). The start-up file .mailrc in the user's home directory is useful for setting display variables and for defining alias lists.

Options

-d

Set debugging.

-e

Test for the existence of mail without printing it. Exit status is 0 if mail exists; otherwise 1.

-f [ file ]

Read mail in alternate file (default is mbox ).

-F

Store message in a file named after the first recipient.

-h n

Stop trying to send after making n network connections, or "hops" (useful for avoiding infinite loops).

-H

Print mail headers only.

-i

Ignore interrupts (useful on modems); same as ignore environment variable.

-I

Use with -f when displaying saved news articles; newsgroup and article-ID headers are included.

-n

Do not read the startup mailx.rc file.

-N

Don't print mail headers.

-r address

Specify a return address for mail you send.

-s sub

Print string sub in the subject header field.

-T file

Record message IDs and article IDs (of news articles) in file .

-u user

Read user 's mail.

-U

Convert uucp -type addresses to Internet format.

-V

Print version number of mailx and exit.


Previous: Reference: mailalias UNIX in a Nutshell: System V Edition Next: Reference: make
Reference: mailalias Book Index Reference: make

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System