mesg - wyświetla (lub nie wyświetla) wiadomości od innych użytkowników
mesg [option] [n|y]
The mesg utility is invoked by a user to control write access others have to the terminal device associated with standard error output. If write access is allowed, then programs such as talk(1) and write(1) may display messages on the terminal.
Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is a trend to remove write access by default, at least for the primary login shell. To make sure your ttys are set the way you want them to be set, mesg should be executed in your login scripts.
The mesg utility silently exits with error status 2 if not executed on terminal. In this case execute mesg is pointless. The command line option --verbose forces mesg to print a warning in this situation. This behaviour has been introduced in version 2.33.
n
Zabrania wiadomości.
y
Zezwala na wyświetlanie wiadomości.
Jeśli nie poda się argumentów, mesg wypisze bieżący status wiadomości na standardowe wyjście błędów.
-v, --verbose
Wypisuje bieżące działania.
-h, --help
Wyświetla ten tekst i kończy pracę.
-V, --version
Wyświetla informacje o wersji i kończy działanie.
Narzędzie mesg kończy pracę z jedną z następujących wartości:
0
Wiadomości są dozwolone.
1
Wiadomości nie są dozwolone
>1
Wystąpił błąd.
/dev/[pt]ty[pq]?
Polecenie mesg pojawiło się w wersji 6 AT&T UNIX.
login(1), talk(1), write(1), wall(1), xterm(1)
Raporty o błędach proszę zgłaszać pod adresem
<https://github.com/util-linux/util-linux/issues>.
The mesg command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Przemek Borys <pborys AT dione DOT ids DOT pl> i Michał Kułach <michal DOT kulach AT gmail DOT com>
Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z GNU General Public License w wersji 3 lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI.
Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres listy dyskusyjnej manpages-pl-list.