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