Send a massive message to the connected users


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Send a massive message to the connected users
# 1  
Old 08-30-2008
Send a massive message to the connected users

How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted?
# 2  
Old 08-30-2008
man wall

regards
# 3  
Old 08-30-2008
Thanks lijiajin,

Here is a bit more info for the command:
Code:
wall

This commands stands for: write all and is used to send messages to the currently logged users.

It is usually located in this directory:
Code:
/usr/bin/

This directory is not defined in the PATH so you will have to type in your shell the full path name to invoke it as follows:
Code:
/usr/bin/wall

For more information about this command and arguments to use, see:
Code:
man wall


Last edited by agasamapetilon; 08-30-2008 at 08:13 AM..
# 4  
Old 08-30-2008
Quote:
Originally Posted by agasamapetilon
It is usually located in this directory:
Code:
/etc

i think you mean something like:

Code:
/usr/bin/wall

/etc ist for config files... (afaik)
# 5  
Old 08-30-2008
Yep, you're right. Smilie Thanks!
# 6  
Old 08-30-2008
Looking up for some information in the web I also find the command:
Code:
rwall

Which also sends messages to all users on the network, here are some variants of the command:

Send a message to a specified host:
Code:
/usr/sbin/rwall hostname

Send a message to a specified network:
Code:
/usr/sbin/rwall -n network-group

Send a message to a specified host on a network:
Code:
/usr/sbin/rwall -h hostname -n network-group

You can check for some information related with this command right here:Commands Reference, Volume 4 - rwall Command
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Curl, to send text message

hello friends I need to send a text message MSM by AIX with a function called CURL you have some example of how it is done so that you can help me please (4 Replies)
Discussion started by: tricampeon81
4 Replies

2. Post Here to Contact Site Administrators and Moderators

Cannot send new Private Message (PM)

To be able to send PMs your post count must be 10 or greater. You currently have 16 posts. If you have a question for the forum moderators and/or administrators, please post your question here. ...you might want to try searching the forums: What am I doing wrong? (3 Replies)
Discussion started by: -=XrAy=-
3 Replies

3. Shell Programming and Scripting

Show the login of users connected with awk

Hello everyone, I was trying to get the all logins of the users connected with awk, using "w" command, I probe with this: w|awk 'NR>2 {print $1}' But I'm not sure... is it ok? Thank You so much! (2 Replies)
Discussion started by: adiegorpc
2 Replies

4. UNIX for Advanced & Expert Users

Send console message to all users and tty

Hi people, i tried to search in the forum... but didnt found the answer... Sometimes i need to send a console message to all users in all tty, like reboot or shutdown does... But i cant find how to do that. Someone know? Thanks a lot (2 Replies)
Discussion started by: gfca
2 Replies

5. UNIX for Advanced & Expert Users

To send a message to another system

How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies

6. Shell Programming and Scripting

error-when trying to send the message thru email.

Hi All, I want to send a message through email. I have written below code. But it is not worling. Anybody has idea, why it is not working?. export $file1=$home1/pip1.$$ mailx -s "This Message from unix" abc@yahoo.com< $file1 thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies

7. UNIX for Dummies Questions & Answers

Send message from Unix to PC

What is the best way to send message from Unix script to PC users connected to the box ? I tried "smbclient -M <machine>" but doesn't work. I prefer not to use Samba. Thanks. (3 Replies)
Discussion started by: mnagaya
3 Replies

8. UNIX for Dummies Questions & Answers

Monitoring connected users

Hello every body Happy new year and merry christmass. Is there a way to monitor the users who are connecting to a Solaris 2.8 Sun Spark workstation . I just need to monitor the users and the command they are usning during telnet or rsh to my workstation. Cheers (2 Replies)
Discussion started by: Reza Nazarian
2 Replies

9. UNIX for Dummies Questions & Answers

send message across terminals

Hello: How would you send message to other unix users logged in into the system now.. what should i verify, before sending them a mail across that displays mesage on the terminal. Any man pages? Thanks, ST2000 (2 Replies)
Discussion started by: ST2000
2 Replies
Login or Register to Ask a Question