logo

utils-std

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

mesg.1 (978B)


  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 September 19, 2025
  5. .Dt MESG 1
  6. .Os
  7. .Sh NAME
  8. .Nm mesg
  9. .Nd permit or deny messages
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Ar y Ns | Ns Ar n
  13. .Sh DESCRIPTION
  14. .Nm
  15. controls whether other users are allowed to send messages
  16. to the current terminal, determined via searching for a TTY
  17. on stdin, stdout, stderr.
  18. If none were found,
  19. .Nm
  20. fails.
  21. .Sh OPERANDS
  22. .Bl -tag -width _
  23. .It Ar y
  24. Allow other users to write to current terminal
  25. .It Ar n
  26. Deny other users from writing to current terminal
  27. .El
  28. .Sh EXIT STATUS
  29. .Bl -tag -width __
  30. .It 0
  31. Other users can write.
  32. .It 1
  33. Other users cannot write.
  34. .It >1
  35. An error occurred.
  36. .El
  37. .Sh SEE ALSO
  38. .Xr talk 1 ,
  39. .Xr write 1
  40. .Sh STANDARDS
  41. .Nm
  42. should be compliant with the
  43. IEEE Std 1003.1-2024 (“POSIX.1”)
  44. specification.
  45. .Sh AUTHORS
  46. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me