Solved

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

Posted on 2007-03-24
7
7,603 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
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.
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.

776 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