NICE(1) BSD NICE(1)
NAME
nice, nohup - run a command at low priority (sh only)
SYNOPSIS
nice [ -number ] command [ arguments ]
nohup command [ arguments ]
DESCRIPTION
nice executes command with low scheduling priority. If you specify
number, nice increments the priority (higher numbers mean lower
priorities) by that amount up to a limit of 20. The default number is
10.
The super-user can run commands with priority higher than normal by using
a negative priority, for example, "--10".
nohup executes command, making it immune to hang-up and terminate signals
from the controlling terminal. The priority is incremented by five. You
should invoke nohup from the shell with a trailing ampersand (&) in order
to prevent it from responding to interrupts by or stealing the input from
the next person who logs in on the same terminal.
FILES
nohup.out Standard output and standard error file under nohup
SEE ALSO
csh(1), setpriority(2), renice(8)
DIAGNOSTICS
nice returns the exit status of the subject command.
BUGS
nice and nohup are particular to sh(1). If you use csh(1), commands
executed with "&" are automatically immune to hang-up signals while in
the background. A built-in command, nohup, provides immunity from
terminate, but does not redirect output to nohup.out.
nice is built into csh(1) with a slightly different syntax than described
here. The form "nice +10" runs a command at low priority, and the
super-user can use "nice -10" to give a process more of the processor.
Because Domain/OS priority scheduling uses a different scale (1 to 16
instead of 0 to 20), there may be rounding problems, and processes may be
"niced" to a slightly different value than expected.