The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send console message to all users and tty gfca UNIX for Advanced & Expert Users 2 08-10-2008 12:50 AM
Send message from Unix to PC mnagaya UNIX for Dummies Questions & Answers 3 03-21-2006 04:40 PM
Monitoring connected users Reza Nazarian UNIX for Dummies Questions & Answers 2 01-03-2003 01:28 AM
send message across terminals ST2000 UNIX for Dummies Questions & Answers 2 12-06-2002 05:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-30-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
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 (permalink)  
Old 08-30-2008
lijiajin lijiajin is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 21
man wall

regards
  #3 (permalink)  
Old 08-30-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
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 (permalink)  
Old 08-30-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,991
Quote:
Originally Posted by agasamapetilon View Post
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 (permalink)  
Old 08-30-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
Yep, you're right. Thanks!
  #6 (permalink)  
Old 08-30-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
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
Closed Thread

Bookmarks

Tags
wall

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0