NICE(1) | User Commands | NICE(1) |
nice - invoke a command with an altered scheduling priority
/usr/bin/nice [-increment | -n increment] command
[argument]...
/usr/xpg4/bin/nice [-increment | -n increment] command
[argument]...
nice [-increment | +increment] [command]
The nice utility invokes command, requesting that it be run with a different system scheduling priority. The priocntl(1) command is a more general interface to scheduler functions.
The invoking process (generally the user's shell) must be in a scheduling class that supports nice.
If the C shell (see csh(1)) is used, the full path of the command must be specified. Otherwise, the csh built-in version of nice will be invoked. See csh Builtin below.
If nice executes commands with arguments, it uses the default shell /usr/bin/sh (see sh(1)).
nice is also a csh built-in command with behavior different from the utility versions. See csh(1) for description.
The following options are supported:
-increment | -n increment
The super-user may run commands with priority higher than normal by using a negative increment such as -10. A negative increment assigned by an unprivileged user is ignored.
The following operands are supported:
command
argument
See environ(7) for descriptions of the following environment variables that affect the execution of nice: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, PATH, and NLSPATH.
If command is invoked, the exit status of nice will be the exit status of command. Otherwise, nice will exit with one of the following values:
1-125
126
127
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | Enabled |
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | Enabled |
Interface Stability | Standard |
csh(1), ksh(1), nohup(1), priocntl(1), sh(1), shell_builtins(1), nice(2), attributes(7), environ(7), standards(7)
January 23, 2004 | OmniOS |