1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" %sccs.include.redist.roff% 8.\" 9.\" @(#)nohup.1 8.1 (Berkeley) 06/06/93 10.\" 11.Dd 12.Dt NOHUP 1 13.Os 14.Sh NAME 15.Nm nohup 16.Nd invoke a command immune to hangups 17.Sh SYNOPSIS 18.Nm nohup 19.Ar command 20.Op Ar arg ... 21.Sh DESCRIPTION 22The 23.Nm nohup 24utility invokes 25.Ar command 26with 27its arguments 28and at this time sets the signal 29.Dv SIGHUP 30to be ignored. The signal 31.Dv SIGQUIT 32may also be set 33to be ignored. 34If the standard output is a terminal, the standard output is 35appended to the file 36.Pa nohup.out 37in the current directory. 38If standard error is a terminal, it is directed to the same place 39as the standard output. 40.Pp 41.Nm Nohup 42exits 1 if an error occurs, otherwise the exit status is that of 43.Ar command . 44.Sh ENVIRONMENT 45The following variable is utilized by 46.Nm nohup . 47.Bl -tag -width flag 48.It Ev HOME 49If the output file 50.Pa nohup.out 51cannot be created in the current directory, the 52.Nm nohup 53utility uses the directory named by 54.Ev HOME 55to create the file. 56.El 57.Sh SEE ALSO 58.Xr signal 3 59.Sh STANDARDS 60The 61.Nm nohup 62command is expected to be 63.St -p1003.2 64compatible. 65