Solved

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

Posted on 2007-03-24
7
7,591 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 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

16 Experts available now in Live!

Get 1:1 Help Now