O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending messages to user terminals

A system administrator may need to send messages to the terminal screen of every user or a specified user on all the machines over a network. This recipe is a guide to perform this task.

Getting ready

wall is a command that is used to write messages on the terminals of all logged in users. It can be used to convey messages to all logged in users in a server or multiple access machines. Sending messages to all users may, sometimes, not be useful. We may need to send messages to specific users or a specific terminal. Terminals are treated as devices in a Linux system and hence these opened terminals will have a corresponding device node file at /dev/pts/. Writing data to a specific device will display messages on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required