added "more" command
[unix-history] / usr / src / usr.bin / nohup / nohup.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.\"
15ea8e48 5.\" @(#)nohup.1 6.1 (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.
48The syntax of nice is also different.
49.SH FILES
50nohup.out standard output and standard error file under
51.I nohup
52.SH "SEE ALSO"
d9486865 53csh(1), setpriority(2), renice(8)
36b987e5
KM
54.SH DIAGNOSTICS
55.I Nice
56returns the exit status of the subject command.
57.SH BUGS
58.I Nice
59and
60.I nohup
61are particular to
62.IR sh (1).
63If you use
64.IR csh (1),
65then commands executed with ``&'' are automatically immune to hangup
66signals while in the background.
67There is a builtin command
68.I nohup
69which provides immunity from terminate, but it does not
70redirect output to
71.I nohup.out.
72.PP
73.I Nice
74is built into
75.IR csh (1)
76with a slightly different syntax than described here. The form
77``nice +10'' nices to positive nice, and ``nice \-10'' can be used
78by the super-user to give a process more of the processor.