Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)nohup.1 6.1 (Berkeley) 04/29/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)nohup.1 6.1 (Berkeley) 04/29/85
NICE 1 ""
C 4 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 the
number argument is present, the priority is incremented (higher
numbers mean lower priorities) by that amount up to a limit of 20.
The default
number is 10.
The super-user may run commands with priority higher than normal by using a negative priority, e.g. `--10'.
Nohup executes command immune to hangup and terminate signals from the controlling terminal. The priority is incremented by 5. Nohup should be invoked from the shell with `&' 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. The syntax of nice is also different.
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), then commands executed with ``&'' are automatically immune to hangup
signals while in the background.
There is a builtin command
nohup which provides immunity from terminate, but it 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'' nices to positive nice, and ``nice -10'' can be used by the super-user to give a process more of the processor.