Solved

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

Posted on 2007-03-24
7
7,672 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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