Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Broadcasting a message?

Posted on 2003-02-21
Medium Priority
Last Modified: 2012-05-07
I want to send out a message to all users, in certain groups, logged into a server. I tried using the wall command so either I'm not using it improperly or it is not the correct way to do it. What I want to do is send out a message to all users on a server (using gui not a terminal) and have that pop-up (like the javascript pop-up widows) appear for people on the gui! I know it is possible but I don't know how do do it!
Question by:894359

Expert Comment

ID: 7994624
Try rwall instead of wall.  You cannot specify server with wall.  It reads from stdin (keyboard) or you can pipe or redirect file.

rwall servername
rwall -h servername -n netgroup

I like using it as a pipe.
Try it and let me know.

Expert Comment

ID: 7995973
This is what you need. It does not exist as built-in command in Unix.
LVL 21

Accepted Solution

tfewster earned 800 total points
ID: 8007606
I couldn't see how to download VWall, so here's a DIY approach:

1) Create a list of connected workstations (using `who -u` ?). This bit needs more thought...
Or the workstations that _might_ connect. Call it "wslist"

2) Create a little shell script, "myscript"
echo "Place your message here"
echo "Press <Return> to continue"
read ans

3) for ws in `cat wslist`
xterm -display ${ws}:0.0 -geom 110x10 -fn Rom14 -bg black -fg red -T `hostname` -e myscript &

This pops an xterm up on each display, with the specified size/font/colours, and executes `myscript`

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question