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
Item | Description |
---|---|
+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. |
Security
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Examples
- To see the next message
in the current folder, enter:
The system responds with a message similar to the following:next
The text of the message is also displayed. In this example, message 10 in the current folder schedule is the next message.(Message schedule: 10)
- To see the next message
in the project folder, enter: next +projectThe system responds with the text of the message and a header similar to the following:
(Message project: 5)
Files
Item | Description |
---|---|
$HOME/.mh_profile | Specifies a user's MH profile. |
/usr/bin/next | Contains the next command. |