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