[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

next Command

Purpose

Shows the next message.

Syntax

next+Folder ] [  -header -noheader ] [  -showproc CommandString -noshowproc ]

Description

The next command displays the number the system will assign to the next message filed in a Message Handler (MH) folder. The next command is equivalent to the show command with the next value specified as the message.

The next command links to the show program and passes any switches on to the showproc program. If you link to the next value and call that link something other than next, your link will function like the show command, rather than like the next command.

The show command passes flags it does not recognize to the program performing the listing. The next command provides a number of flags for the listing program.

Flags

+Folder Specifies the folder that contains the message you want to show.
-header Displays a one-line description of the message being shown. The description includes the folder name and message number. This is the default.
-help Lists the command syntax, available switches (toggles), and version information.

Note: For MH, the name of this flag must be fully spelled out.
-noheader Prevents display of a one-line description of each message being shown.
-noshowproc Uses the /usr/bin/cat file to perform the listing. This is the default.
-showproc CommandString Uses the specified command string to perform the listing.

Examples

  1. To see the next message in the current folder, enter:

    next

    The system responds with a message similar to the following:

    (Message schedule: 10)

    The text of the message is also displayed. In this example, message 10 in the current folder schedule is the next message.

  2. To see the next message in the project folder, enter:
    next  +project
    The system responds with the text of the message and a header similar to the following:

    (Message project: 5)

Files

$HOME/.mh_profile Specifies a user's MH profile.
/usr/bin/next Contains the next command.

Related Information

The prev command, show command.

The .mh_alias file format, .mh_profile file format.

Mail Overview in AIX 5L Version 5.2 System User's Guide: Communications and Networks.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]