Home > 10.10 > Is there a way to have wall messages show to desktop users?

Is there a way to have wall messages show to desktop users?

November 11Hits:0
Advertisement

Let's say I'm away from home, ssh-ing on my home computer. For any reason, I need it rebooted.

# shutdown -r +10 

This sends a warning message every minute via wall, which is completely invisible for normal desktop use by, say, my parents.

Is there any way wall messages can reach the desktop via, say, notification.

Answers

The internals of wall and are so blocked off and ancient that there's really no way to pull the message from it once it's in there.

The only real idea put forward for this (the problem has been discussed before, many times) is to alter the shutdown and reboot scripts so they either make something available via dbus or (as we're only dealing with one computer and one fix) you could just have it send a notify-send message.

They are just scripts so you could just hack into them. But I think this is probably a cause worth pushing for. Submit a bug against Ubuntu and add your patches (just make sure they can work without needing to send the notification if there's no X environment). It's this sort of usability that we need.

I've never heard of gxmessage before, but I would use notify-send.

A full solution would need to cater for the possibility of multiple displays (eg multi-head, remote users, etc) but thankfully I wrote some code for that bit yesterday:

for display in `ps aux | grep -oE "/usr/bin/X\s[^ ]+" | cut -d " " -f 2`; do
    DISPLAY=$display notify-send -u critical 'Shutdown notice' 'Save all your work. THE SYSTEM IS GOING DOWN!!' -i /usr/share/pixmaps/gnome-computer.png
done

(I'm using export instead of a -display or --display flag because I don't know that notify-send takes either)

You could send a message manually using zenity

zenity --warning --text "badp's about to restart the computer" --display=:0

Of course, you could include this in a script.

You should be able to write a script that crateas a ptty and listens for written messages (from write or wall) and then forwards that on to a GUI output.

AFAIK there is no X client for the wall command to display these message in a graphical environment. You can use gxmessage app for displaying popups but then you will have to write the script yourself.

Related Articles

  • Is there a way to have wall messages show to desktop users?November 11

    Let's say I'm away from home, ssh-ing on my home computer. For any reason, I need it rebooted. # shutdown -r +10 This sends a warning message every minute via wall, which is completely invisible for normal desktop use by, say, my parents. Is there an

  • Shutdown goes to uninterruptible sleep after sending wall messageAugust 5

    I have a server which I'm administrating remotely over SSH, for various reasons, it needs to be restarted. However, when I try to do so, shutdown goes to uninterruptible sleep almost immediately after sending the wall message. $ ps aux | grep 'shutdo

  • How to join the tables in mysql to get wall messages and comments with name of person ? Only user and his friends messages

    How to join the tables in mysql to get wall messages and comments with name of person ? Only user and his friends messagesFebruary 4

    I have four tables in my mysql database as shown in the image url provided. I want to select data from the tables without duplication. I want to show messages and comments on wall according to the session on username (messages and comments of friends

  • linux + send wall message only to the specific userMay 4

    As all know , we can send broadcast message to all users on Linux machine But how to send message only to the specific user? For example #who rodegc pts/1 2015-05-04 04:23 (10.4.72.1) dwwar pts/3 2015-05-03 00:56 (10.4.72.2) tzcsar pts/5 2015-05-03 2

  • is there a way to text message from your desktop, BUT have it sync with your iphone?January 14

    I want to send SMS messages via any Mac desktop application, however, I want to have the chat history in my SMS hisotry on my iPhone 4. Is this possible?? --------------Solutions------------- This is possible using the SMS features of Google Voice.

  • Applescript message when Remote Desktop connection established June 14

    I want something more visual than Apple's very subtle binoculars in the top right status menu when there is an active incoming VNC connection to the machine. Preferably just a floating window notifying the user that there is an active VNC connection,

  • How to configure message on Remote Desktop access on Windows Server 2008 R2?February 21

    I have Windows Server 2008 R2. When a user is logged in and another user (with same credentials) tries to logon, I need to display a prompt with the message that another user is already logged in. If it is possible, the message should be customizable

  • Is there a way to receive my SMS messages on my desktop?September 26

    I just purchased an S4 Mini, my first android phone. I was wondering - is there a way to send/receive messages on my Windows 8 desktop when my phone is connected to my machine? --------------Solutions------------- You might wish to run a search on Go

  • Desktop wall paper goes black, desktop is almost in accessibleDecember 21

    I am not sure if installing Cinnamon desktop is causing the issue. But desktop wall paper becomes black,and system hangs(no such issue in W7 64 bit). Even from launcher some open application goes to the black hole. I have Ubuntu tweak and in Unity se

  • How can I show alert message on the desktopSeptember 29

    I am using Fedora 20 with a MATE desktop and the Z shell. Is there a way to display a message on the screen somewhere, sent from a shell program, when the terminal window is not visible? --------------Solutions------------- You can use zenity (GTK+ d

  • Ubuntu 15.10. Weird error message and the desktop image doesn't boot through usbstick

    Ubuntu 15.10. Weird error message and the desktop image doesn't boot through usbstickJanuary 12

    I've downloaded the latest Ubuntu Desktop 15.10 and used Rufus to make an image to a usbstick. This has worked in the past for me. But recently i've hade to by a new motherboard and a new CPU because the old ones got broken. I've booted up from the m

  • grep returning wrong messages in GNOME Desktop(Linux)February 7

    I need to search a particular string inside a folder structure. The File system contains multiple files, but i need to check only XML files. I searched and tried the commands for Linux Recursive search but it did not work. I got the following output

  • How can I view a history of posts to my Facebook wall?

    How can I view a history of posts to my Facebook wall?July 16

    Is there a way to view a listing of old posts to my Facebook wall? I've been using Facebook for a number of years, and I have accumulated hundreds of postings on my wall. How long are those posts stored on Facebook's servers, and how can I look at th

  • is there any command like "wall" that runs a "command" in all terminalsJuly 5

    as you know "wall" command sends a message to all terminals: wall message now my question is this: is there any command that can send a "command" to be run in all terminals? for example sending clear command to all terminals , so then

  • How to write a good exception messageDecember 23

    I'm currently doing a code review and one of the things I'm noticing are the number of exceptions where the exception message just seems to reiterate where the exception occurred. e.g. throw new Exception("BulletListControl: CreateChildControls faile

  • How to Sync Text Messages from Outlook 2010 to AndroidMay 18

    I went from the HTC "Tilt" running Windows 6.1 to the Samsung INFUSE running Android. I use an exchange server plus Outlook 2010 at my office. I can no longer send/receive text messages from my desktop. Everything else sync's fine. Does Android

  • Typing/sending text messages using KiesAugust 5

    Does the Kies software allow one to type and send text messages from the PC? --------------Solutions------------- You can't. But, on the other hand, you can use the Kies Air application, which you can obtain through Samsung Apps. It allows you to acc

  • Send Message through SSHAugust 31

    How would one can send a message to the logged in user's desktop through ssh? I sometimes connect my friend's computer to help him out, but i need to the a message to his desktop rather than using talk or ytalk. There are options like notify-send, gm

  • MacBook Pro freezes and shows console error messages

    MacBook Pro freezes and shows console error messagesOctober 20

    When I log in to my MacBook Pro (Mac OS X 10.5.8 w/ Intel 2.8 GHz Intel Core 2 Duo, and 4 GB of DDR3 ram with a few bad sectors), it started entering my desktop but returned me to the log in screen. So, I took my MacBook Pro to the nearest Apple Stor

  • Send message to specific port on Windows cmd.exeDecember 2

    I'm playing with a program on desktop. It's listening on port 5060. However, I don't have anything sending to this location/host. If I open my laptop's command line, is there a way to send a simple message to my desktop's ipaddress, on port 5060? Thi

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.591 s.