logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

nohup.1 (1163B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-04-15
  5. .Dt NOHUP 1
  6. .Os
  7. .Sh NAME
  8. .Nm nohup
  9. .Nd run command with hangups ignored
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Ar command
  13. .Op Ar argument...
  14. .Sh DESCRIPTION
  15. .Nm
  16. runs
  17. .Ar command
  18. with SIGHUP ignored, allowing to keep
  19. .Ar command
  20. running even after the terminal hanged up.
  21. .Pp
  22. If stdout is TTY, it's output is saved to
  23. .Pa ./nohup.out
  24. or if it fails to open it for writing, to
  25. .Pa ~/nohup.out .
  26. If stderr is also a TTY, it's output is also saved to
  27. .Pa nohup.out .
  28. .Sh EXIT STATUS
  29. If
  30. .Ar command
  31. is invoked, the exit status of
  32. .Nm
  33. shall be the exit status of
  34. .Ar command ;
  35. Otherwise, the
  36. .Nm
  37. utility shall exit with one of the following values:
  38. .Bl -tag -width Ds
  39. .It 126
  40. .Ar command
  41. was found but couldn't be invoked.
  42. .It 127
  43. .Ar command
  44. wasn't found or an error occurred within the
  45. .Nm
  46. utility.
  47. .El
  48. .Sh SEE ALSO
  49. .Xr tmux 1
  50. .Sh STANDARDS
  51. .Nm
  52. should be compliant with the
  53. IEEE Std 1003.1-2024 (“POSIX.1”)
  54. specification.
  55. .Sh AUTHORS
  56. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me