xref: /original-bsd/usr.bin/nohup/nohup.1 (revision 2622b709)
1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)nohup.1	6.4 (Berkeley) 06/11/90
7.\"
8.Dd
9.Dt NOHUP 1
10.Sh NAME
11.Nm nohup
12.Nd invoke a command immune to hangups
13.Sh SYNOPSIS
14.Nm nohup
15.Ar command
16.Op Ar arg ...
17.Sh DESCRIPTION
18The
19.Nm nohup
20utility invokes
21.Ar command
22with
23its arguments
24and at this time sets the signal SIGHUP
25to be ignored. The signal SIGQUIT may also be set
26to be ignored.
27If the standard output is a terminal, the standard output is
28appended to the file
29.Pa nohup.out
30in the current directory.
31If standard error is a terminal, it is directed to the same place
32as the standard output.
33.Pp
34.Nm Nohup
35exits 1 if an error occurs, otherwise the exit status is that of
36.Ar command  .
37.Sh ENVIRONMENT
38.Tw Fl
39.Tp Ev HOME
40If the output file
41.Pa nohup.out
42cannot be created in the current directory, the
43.Nm nohup
44utility uses the directory named by
45.Ev HOME
46to create the file.
47.Tp
48.Sh SEE ALSO
49.Xr signal 3
50.Sh STANDARDS
51The nohup function is expected to be POSIX 1003.2 compatible.
52