Annotation of src/usr.bin/nohup/nohup.1, Revision 1.9
1.9 ! jmc 1: .\" $OpenBSD: nohup.1,v 1.8 2003/06/03 02:56:14 millert Exp $
1.1 deraadt 2: .\" $NetBSD: nohup.1,v 1.5 1995/08/31 23:35:24 jtc Exp $
3: .\"
4: .\" Copyright (c) 1989, 1990, 1993
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" This code is derived from software contributed to Berkeley by
8: .\" the Institute of Electrical and Electronics Engineers, Inc.
9: .\"
10: .\" Redistribution and use in source and binary forms, with or without
11: .\" modification, are permitted provided that the following conditions
12: .\" are met:
13: .\" 1. Redistributions of source code must retain the above copyright
14: .\" notice, this list of conditions and the following disclaimer.
15: .\" 2. Redistributions in binary form must reproduce the above copyright
16: .\" notice, this list of conditions and the following disclaimer in the
17: .\" documentation and/or other materials provided with the distribution.
1.8 millert 18: .\" 3. Neither the name of the University nor the names of its contributors
1.1 deraadt 19: .\" may be used to endorse or promote products derived from this software
20: .\" without specific prior written permission.
21: .\"
22: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32: .\" SUCH DAMAGE.
33: .\"
34: .\" @(#)nohup.1 8.1 (Berkeley) 6/6/93
35: .\"
36: .Dd June 6, 1993
37: .Dt NOHUP 1
38: .Os
39: .Sh NAME
40: .Nm nohup
41: .Nd invoke a command immune to hangups
42: .Sh SYNOPSIS
43: .Nm nohup
44: .Ar utility
45: .Op Ar arg ...
46: .Sh DESCRIPTION
47: The
48: .Nm nohup
1.9 ! jmc 49: command invokes
! 50: .Ar utility
1.1 deraadt 51: with
52: its arguments
53: and at this time sets the signal
54: .Dv SIGHUP
1.5 aaron 55: to be ignored.
1.1 deraadt 56: If the standard output is a terminal, the standard output is
57: appended to the file
58: .Pa nohup.out
59: in the current directory.
60: If standard error is a terminal, it is directed to the same place
61: as the standard output.
1.6 aaron 62: .Pp
1.1 deraadt 63: The
64: .Nm nohup
1.9 ! jmc 65: command shall exit with one of the following values:
1.6 aaron 66: .Pp
67: .Bl -tag -width Ds -offset indent -compact
1.1 deraadt 68: .It 126
69: The
70: .Ar utility
71: was found but could not be invoked.
72: .It 127
73: The
74: .Ar utility
1.5 aaron 75: could not be found or an error occurred in
1.4 aaron 76: .Nm nohup .
1.1 deraadt 77: .El
78: .Pp
1.5 aaron 79: Otherwise, the exit status of
1.1 deraadt 80: .Nm nohup
1.5 aaron 81: shall be that of
1.1 deraadt 82: .Ar utility .
1.6 aaron 83: .Sh ENVIRONMENT
84: .Bl -tag -width flag
85: .It Ev HOME
86: If the output file
87: .Pa nohup.out
88: cannot be created in the current directory, the
89: .Nm nohup
90: utility uses the directory named by
91: .Ev HOME
92: to create the file.
93: .El
1.1 deraadt 94: .Sh SEE ALSO
95: .Xr signal 3
96: .Sh STANDARDS
97: The
98: .Nm nohup
99: command is expected to be
100: .St -p1003.2
101: compatible.