xref: /freebsd/usr.bin/nohup/nohup.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
19b50d902SRodney W. Grimes.\" Copyright (c) 1989, 1990, 1993
29b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
39b50d902SRodney W. Grimes.\"
49b50d902SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
59b50d902SRodney W. Grimes.\" the Institute of Electrical and Electronics Engineers, Inc.
69b50d902SRodney W. Grimes.\"
79b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
89b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
99b50d902SRodney W. Grimes.\" are met:
109b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
119b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
129b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
139b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
149b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
15fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
169b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
179b50d902SRodney W. Grimes.\"    without specific prior written permission.
189b50d902SRodney W. Grimes.\"
199b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
209b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
219b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
229b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
239b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
249b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
259b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
269b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
279b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
289b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
299b50d902SRodney W. Grimes.\" SUCH DAMAGE.
309b50d902SRodney W. Grimes.\"
31*3df959b5STom Hukins.Dd June 26, 2023
329b50d902SRodney W. Grimes.Dt NOHUP 1
339b50d902SRodney W. Grimes.Os
349b50d902SRodney W. Grimes.Sh NAME
359b50d902SRodney W. Grimes.Nm nohup
364633a1abSTim J. Robbins.Nd invoke a utility immune to hangups
379b50d902SRodney W. Grimes.Sh SYNOPSIS
387eb43673SPhilippe Charnier.Nm
39df3fa851SRuslan Ermilov.Op Fl Fl
404633a1abSTim J. Robbins.Ar utility
4134398e2dSPhilippe Charnier.Op Ar arguments
429b50d902SRodney W. Grimes.Sh DESCRIPTION
439b50d902SRodney W. GrimesThe
447eb43673SPhilippe Charnier.Nm
459b50d902SRodney W. Grimesutility invokes
464633a1abSTim J. Robbins.Ar utility
47e896ec1eSMike Barcroftwith its
4834398e2dSPhilippe Charnier.Ar arguments
499b50d902SRodney W. Grimesand at this time sets the signal
509b50d902SRodney W. Grimes.Dv SIGHUP
51e6d3cf26SSheldon Hearnto be ignored.
529b50d902SRodney W. GrimesIf the standard output is a terminal, the standard output is
539b50d902SRodney W. Grimesappended to the file
549b50d902SRodney W. Grimes.Pa nohup.out
559b50d902SRodney W. Grimesin the current directory.
569b50d902SRodney W. GrimesIf standard error is a terminal, it is directed to the same place
579b50d902SRodney W. Grimesas the standard output.
589b50d902SRodney W. Grimes.Pp
59c644db6aSSheldon HearnSome shells may provide a builtin
60c644db6aSSheldon Hearn.Nm
61e6d3cf26SSheldon Hearncommand which is similar or identical to this utility.
62e6d3cf26SSheldon HearnConsult the
63c644db6aSSheldon Hearn.Xr builtin 1
64c644db6aSSheldon Hearnmanual page.
659b50d902SRodney W. Grimes.Sh ENVIRONMENT
668b4f995aSTim J. RobbinsThe following variables are utilized by
678fe908efSRuslan Ermilov.Nm :
689b50d902SRodney W. Grimes.Bl -tag -width flag
699b50d902SRodney W. Grimes.It Ev HOME
709b50d902SRodney W. GrimesIf the output file
719b50d902SRodney W. Grimes.Pa nohup.out
729b50d902SRodney W. Grimescannot be created in the current directory, the
737eb43673SPhilippe Charnier.Nm
749b50d902SRodney W. Grimesutility uses the directory named by
759b50d902SRodney W. Grimes.Ev HOME
769b50d902SRodney W. Grimesto create the file.
778b4f995aSTim J. Robbins.It Ev PATH
788b4f995aSTim J. RobbinsUsed to locate the requested
794633a1abSTim J. Robbins.Ar utility
808b4f995aSTim J. Robbinsif the name contains no
818b4f995aSTim J. Robbins.Ql /
828b4f995aSTim J. Robbinscharacters.
839b50d902SRodney W. Grimes.El
84a866e170SRuslan Ermilov.Sh EXIT STATUS
85e896ec1eSMike BarcroftThe
86e896ec1eSMike Barcroft.Nm
87e896ec1eSMike Barcroftutility exits with one of the following values:
88e896ec1eSMike Barcroft.Bl -tag -width Ds
89e896ec1eSMike Barcroft.It 126
90e896ec1eSMike BarcroftThe
914633a1abSTim J. Robbins.Ar utility
92e896ec1eSMike Barcroftwas found, but could not be invoked.
93e896ec1eSMike Barcroft.It 127
94e896ec1eSMike BarcroftThe
954633a1abSTim J. Robbins.Ar utility
96e896ec1eSMike Barcroftcould not be found or an error occurred in
97e896ec1eSMike Barcroft.Nm .
98e896ec1eSMike Barcroft.El
99e896ec1eSMike Barcroft.Pp
100e896ec1eSMike BarcroftOtherwise, the exit status of
101e896ec1eSMike Barcroft.Nm
102e896ec1eSMike Barcroftwill be that of
1034633a1abSTim J. Robbins.Ar utility .
1049b50d902SRodney W. Grimes.Sh SEE ALSO
105c644db6aSSheldon Hearn.Xr builtin 1 ,
106c644db6aSSheldon Hearn.Xr csh 1 ,
107*3df959b5STom Hukins.Xr timeout 1 ,
108a641e445SMateusz Piotrowski.Xr signal 3 ,
109a641e445SMateusz Piotrowski.Xr daemon 8
1109b50d902SRodney W. Grimes.Sh STANDARDS
1119b50d902SRodney W. GrimesThe
1127eb43673SPhilippe Charnier.Nm
1137eb43673SPhilippe Charnierutility is expected to be
1149b50d902SRodney W. Grimes.St -p1003.2
1159b50d902SRodney W. Grimescompatible.
116e896ec1eSMike Barcroft.Sh BUGS
117e896ec1eSMike BarcroftTwo or more instances of
118e896ec1eSMike Barcroft.Nm
119e896ec1eSMike Barcroftcan append to the same file, which makes for a confusing output.
120