Enter your email address:

Delivered by FeedBurner

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


StumbleUpon Toolbar

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   

Trackback URL for this post:

http://www.go2linux.org/trackback/521
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

s/y may/you may/ s/more

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

Hi friend, It's

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.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting