BSD 4_1_snap development
[unix-history] / usr / man / man1 / nice.1
CommitLineData
e3758c96
C
1.TH NICE 1
2.UC 4
3.SH NAME
4nice, nohup \- run a command at low priority (\fIsh\fR only)
5.SH SYNOPSIS
6.B nice
7[
8.BI \- number
9]
10command [ arguments ]
11.PP
12.B nohup
13command [ arguments ]
14.SH DESCRIPTION
15.I Nice
16executes
17.I command
18with low scheduling priority.
19If the
20.I number
21argument is present, the priority is incremented (higher
22numbers mean lower priorities) by that amount up to a limit of 20.
23The default
24.I number
25is 10.
26.PP
27The super-user may run commands with
28priority higher than normal
29by using a negative priority,
30e.g. `\-\-10'.
31.PP
32.I Nohup
33executes
34.I command
35immune to hangup and terminate signals from the controlling terminal.
36The priority is incremented by 5.
37.I Nohup
38should be invoked from the shell with `&' in order to
39prevent it from responding to interrupts by or
40stealing the input from
41the next person who logs in on the same terminal.
42The syntax of nice is also different.
43.SH FILES
44nohup.out standard output and standard error file under
45.I nohup
46.SH "SEE ALSO"
47csh(1), nice(2), renice(8)
48.SH DIAGNOSTICS
49.I Nice
50returns the exit status of the subject command.
51.SH BUGS
52.I Nice
53and
54.I nohup
55are particular to
56.IR sh (1).
57If you use
58.IR csh (1),
59then commands executed with ``&'' are automatically immune to hangup
60signals while in the background.
61There is a builtin command
62.I nohup
63which provides immunity from terminate, but it does not
64redirect output to
65.I nohup.out.
66.PP
67.I Nice
68is built into
69.IR csh (1)
70with a slightly different syntax than described here. The form
71``nice +10'' nices to positive nice, and ``nice \-10'' can be used
72by the super-user to give a process more of the processor.