xref: /original-bsd/usr.bin/nohup/nohup.1 (revision 6ab384a1)
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.5 (Berkeley) 07/24/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
38The following variable is utilized by
39.Nm nohup .
40.Tw Fl
41.Tp Ev HOME
42If the output file
43.Pa nohup.out
44cannot be created in the current directory, the
45.Nm nohup
46utility uses the directory named by
47.Ev HOME
48to create the file.
49.Tp
50.Sh SEE ALSO
51.Xr signal 3
52.Sh STANDARDS
53The nohup function is expected to be POSIX 1003.2 compatible.
54