Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1980, 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
36b987e5 | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
36b987e5 | 5 | .\" |
d0719240 | 6 | .\" @(#)nice.1 6.6 (Berkeley) %G% |
b5dc1377 | 7 | .\" |
ee9b0a0a CL |
8 | .Vx |
9 | .Vx | |
b5dc1377 CL |
10 | .Dd |
11 | .Dt NICE 1 | |
12 | .Os BSD 4 | |
13 | .Sh NAME | |
14 | .Nm nice | |
15 | .Nd execute a command at a low scheduling priority | |
16 | .Sh SYNOPSIS | |
17 | .Nm nice | |
18 | .Oo | |
19 | .Op Fl Ar number | |
20 | .Oo | |
21 | .Ar command | |
22 | .Op Ar arguments | |
23 | .Sh DESCRIPTION | |
24 | .Nm Nice | |
25 | runs | |
26 | .Ar command | |
27 | at a low priority. | |
28 | (Think of low and slow). | |
29 | If | |
30 | .Ar \-number | |
31 | is specified, and if it is greater than or equal | |
32 | to 10 (the default), | |
33 | .Nm nice | |
34 | will execute | |
35 | .Ar command | |
36 | at that priority. | |
37 | The upper bound, or lowest priority that | |
38 | .Nm nice | |
39 | will run a command is 20. | |
40 | The lower bounds or | |
41 | higher priorities (integers less than 10) | |
42 | can only be requested by the super-user. | |
43 | Negative numbers are expressed as | |
44 | .Ar \-\-number. | |
45 | .Pp | |
46 | The returned exit status is the exit value from the | |
47 | command executed by | |
48 | .Nm nice . | |
49 | .Sh SEE ALSO | |
50 | .Xr csh 1 , | |
b5dc1377 CL |
51 | .Xr renice 8 |
52 | .Sh HISTORY | |
53 | .Nm Nice | |
54 | appeared in Version 6 AT&T UNIX. | |
55 | .Sh BUGS | |
56 | .Nm Nice | |
1cc467a3 | 57 | is particular to |
b5dc1377 | 58 | .Xr sh 1 . |
36b987e5 | 59 | If you use |
b5dc1377 | 60 | .Xr csh 1 , |
36b987e5 KM |
61 | then commands executed with ``&'' are automatically immune to hangup |
62 | signals while in the background. | |
b5dc1377 CL |
63 | .Pp |
64 | .Nm Nice | |
36b987e5 | 65 | is built into |
b5dc1377 | 66 | .Xr csh 1 |
36b987e5 KM |
67 | with a slightly different syntax than described here. The form |
68 | ``nice +10'' nices to positive nice, and ``nice \-10'' can be used | |
69 | by the super-user to give a process more of the processor. |