Обращается ли процесс на ведомой стороне pty к дисциплине линии или к ведомому tty-драйверу?

Проверьте эту ссылку, там есть именно то, что вам нужно для начала. Я вставил содержимое в ответ для удобства чтения и на случай, если страница изменится или переместится и т. Д.

http://www.cyberciti.biz/faq/red-hat-centos-fedora-send-package-update- notification-via-email /

Как отправить автоматическое уведомление по электронной почте в RHEL v4 / 5, CentOS, Red Hat и Fedora Linux, когда доступны обновления безопасности и пакетов? Как мне сделать заставить yum отправлять электронное письмо, когда доступны обновления?

RHEL / Fedora / CentOS имеет yum-updatesd, который уведомляет об обновлениях, доступных для применения в вашей системе. Это уведомление может быть выполнено через системный журнал, электронную почту или через dbus. Конфигурация выполняется с помощью файла /etc/yum/yum-updatesd.conf.

Откройте файл /etc/yum/yum-updatesd.conf, введите:

# vi /etc/yum/yum-updatesd.conf

Установите следующие переменные:

emit_via = email
# who to send the email to:
email_to = admin@example.com
# who send the notifications
email_from = adm@staff.example.com

Вот полный рабочий файл конфигурации:

# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600

# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email
email_to = admin@example.com

# who send the notifications
email_from = adm@staff.example.com
#
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes

# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no

Привет, это система автоматического обновления на node02. nixcraft.co.in. Доступно 2 обновления пакета. Запустите средство обновления системы. Доступные для обновления пакеты: device-mapper-multipath kpartx Спасибо, ваш компьютер

5
27.05.2017, 00:28
1 ответ

Второе изображение правильное. (Кстати, это происходит отсюда .)

Из принятого ответа на этот вопрос:

The line discipline is a software module (residing in the driver, in the kernel) pushed on top of a serial/pty device that sits between that device and the line/wire (the master side for a pty).

(...)

You can see the effect of disabling the tty line discipline by issuing stty raw -echo (note that the bash prompt or other interactive applications like vi set the terminal in the exact mode they need, so you want to use a dumb application like cat to experience with that). Then, everything that is written to the slave terminal device makes it immediately to the master side for xterm to read, and every character written by xterm to the master side is immediately available for reading from the slave device.

См. также этот пост о ttys.

4
27.01.2020, 20:41

Теги

Похожие вопросы