Enter your email address:

Delivered by FeedBurner

How to broadcast a message to all users - using wall -

Sometimes as the administrator of a Linux Operating System Server, y may need to send a message to all users in a multi-user system.

There are some different ways to do this, but we will now see just one of them.

We will use wall

As the main input of wall is a file, we will first create our message file.

Let's say you want to tell users that in two more ours the main SQL database is going to be unavailable because of maintenance.

So type:

echo 'Please note that in two more hours, and for one hour, you will not be able to use the SQL database, please save all your job before, and quit any application using it'> message.txt

OK, now we have our message ready, it is time to send it to the users.

wall < message.txt

And something like this will appear on all terminals open.

Broadcast Message from root@debian                                             
        (/dev/pts/3) at 9:56 ...                                               
                                                                               
Please note that in two more hours, and for one hour, you will not be able to u
se the SQL database, please save all your job before, and quit any application 
using it   
Share/Save
 #

Hi friend,
It's very important issue for sending message and i think it's very good solution for it.This post give very useful information.

 
 #

s/y may/you may/
s/more ours/more hours/

 

Navigation

For your laptop needs, visit LaptopLogic - the laptop review site with news, articles, tips and how-to's.

Recent comments