nohup.1 (1163B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-04-15
- .Dt NOHUP 1
- .Os
- .Sh NAME
- .Nm nohup
- .Nd run command with hangups ignored
- .Sh SYNOPSIS
- .Nm
- .Ar command
- .Op Ar argument...
- .Sh DESCRIPTION
- .Nm
- runs
- .Ar command
- with SIGHUP ignored, allowing to keep
- .Ar command
- running even after the terminal hanged up.
- .Pp
- If stdout is TTY, it's output is saved to
- .Pa ./nohup.out
- or if it fails to open it for writing, to
- .Pa ~/nohup.out .
- If stderr is also a TTY, it's output is also saved to
- .Pa nohup.out .
- .Sh EXIT STATUS
- If
- .Ar command
- is invoked, the exit status of
- .Nm
- shall be the exit status of
- .Ar command ;
- Otherwise, the
- .Nm
- utility shall exit with one of the following values:
- .Bl -tag -width Ds
- .It 126
- .Ar command
- was found but couldn't be invoked.
- .It 127
- .Ar command
- wasn't found or an error occurred within the
- .Nm
- utility.
- .El
- .Sh SEE ALSO
- .Xr tmux 1
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me