xref: /original-bsd/usr.bin/nohup/nohup.1 (revision 3a8172c6)
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.6 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt NOHUP 1
12.Sh NAME
13.Nm nohup
14.Nd invoke a command immune to hangups
15.Sh SYNOPSIS
16.Nm nohup
17.Ar command
18.Op Ar arg ...
19.Sh DESCRIPTION
20The
21.Nm nohup
22utility invokes
23.Ar command
24with
25its arguments
26and at this time sets the signal SIGHUP
27to be ignored. The signal SIGQUIT may also be set
28to be ignored.
29If the standard output is a terminal, the standard output is
30appended to the file
31.Pa nohup.out
32in the current directory.
33If standard error is a terminal, it is directed to the same place
34as the standard output.
35.Pp
36.Nm Nohup
37exits 1 if an error occurs, otherwise the exit status is that of
38.Ar command  .
39.Sh ENVIRONMENT
40The following variable is utilized by
41.Nm nohup .
42.Tw Fl
43.Tp Ev HOME
44If the output file
45.Pa nohup.out
46cannot be created in the current directory, the
47.Nm nohup
48utility uses the directory named by
49.Ev HOME
50to create the file.
51.Tp
52.Sh SEE ALSO
53.Xr signal 3
54.Sh STANDARDS
55The nohup function is expected to be POSIX 1003.2 compatible.
56