Solved

How do you send a pop-up message to a LINUX KDE or GNOME user?

Posted on 2007-03-24
7
7,571 Views
Last Modified: 2013-12-16
How do you send a pop-up message to a user who is currently logged in using the KDE or GNOME desktop?  I want to do this while logged in remotely as a super user using ssh.  I know there has to be an easy command in BASH to do this.
0
Comment
Question by:thomaswright
  • 5
  • 2
7 Comments
 
LVL 20

Accepted Solution

by:
nedvis earned 250 total points
ID: 18787061
type command:
wall
press <ENTER>

then type:
your message

ctrl-d
hit <ENTER>
0
 
LVL 20

Expert Comment

by:nedvis
ID: 18787073
excerpt from  man wall :
NAME
       wall -- send a message to everybody's terminal.
SYNOPSIS
       wall [-n] [ message ]
DESCRIPTION
       Wall  sends a message to everybody logged in with their mesg(1) permis&#8208;
       sion set to yes.  The message can be given as an argument to  wall,  or
       it can be sent to wall's standard input.  When using the standard input
       from a terminal, the message should be  terminated  with  the  EOF  key
       (usually Control-D).
       The length of the message is limited to 20 lines.  For every invocation
       of wall a  notification  will  be  written  to  syslog,  with  facility
       LOG_USER and level LOG_INFO.
OPTIONS
       -n     Suppresses  the  normal  banner  printed by wall, changing it to
              "Remote broadcast message".  This option is only  available  for
              root   if  wall  is  installed  set-group-id,  and  is  used  by
              rpc.walld(8).
ENVIRONMENT
       Wall ignores the TZ variable - the time printed in the banner is  based
       on the system's local time.
0
 
LVL 20

Expert Comment

by:nedvis
ID: 18787086
other option is to install talk-client and talk-server
Talk client for one-on-one Internet chatting
The talk package provides client and daemon programs for the Internet
 talk protocol, which allows you to chat with other users on different
 systems.  Talk is a communication program which copies lines from one
 terminal to the terminal of another user.
 
 Install talk if you'd like to use talk for chatting with users on
 different systems.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 3

Author Comment

by:thomaswright
ID: 18787163
The wall command works well for console users but it doesn't seem to do anything on the kde screen of the linux computer when I attempt it. Talk is the same thing - a console chat (unless there is something I am not aware of).
0
 
LVL 20

Expert Comment

by:nedvis
ID: 18787275
"but it doesn't seem to do anything on the kde screen of the linux computer when I attempt it"
Strange , because once I type  wall "my message"
Kwrited pops up telling it is listenning on Device /dev/pts/0 ( ine window tile) and with
"my message" displayed in the pop-up window.

I'm using PCLinuxOS Test 2 but I know it works on SUSE 10.2 without any problems.

What happens when you change to /usr/bin  directory where wall executable is located?

0
 
LVL 20

Expert Comment

by:nedvis
ID: 18787496
kwrited is supposed to allow the user to receive write,talk and ytalk messages from ttys or from other users logged in in X sessions.
http://www.archivesat.com/For_developers_of_Konsole/thread636771.htm
http://enterprise.linux.com/comments.pl?sid=34687&cid=83931
0
 
LVL 3

Author Comment

by:thomaswright
ID: 18787923
I see what's  happening now.  You are correct, it does work properly when using the command:

$ wall -d "My Message Text"

and DOES pop up on the KDE clients.  It didn't pop-up on the GNOME client because kwrited is not in the GNOME configuration.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now