Quote:
As for sending a gui message, xmessage will work.
|
Yes, the tool will work, but like so many nominal X tools, is butt ugly.
![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
Further, the tool does not seem to work across a LAN.
I found some GUI tools like kpopup and linppopup. They are old or unmaintained and they are narrowly focused on running with Windows networks, as a replacement for WinPopup.
Quote:
If the machine is shutting down, it'll be changing to runlevel 0, and its trivial to add some action triggered by the edge of a runlevel transition. You can use either /etc/rc/rc0.d, or fool around with the inittab file.
|
Yes, I had contemplated that the solution probably would involve editing one of the shutdown scripts or writing a wrapper script of some kind. In perspective, I was running the simple network-capable WinPopup on Windows 3.11 in the early 1990s. I'm surprised there is no widely discussed method to extend system messages across a LAN. There does seem to be a solution, but overwhelmingly most of the solutions I have seen focus on creating messages isolated to a single workstation.
With that all said, today I tested sending a message with rwall. The process does work. I received a graphical message at a remote workstation while using KDE (because I had the KDE Write Daemon enabled). I also received the same message at the remote workstation for a concurrent console login.
For rwall to succeed the system
expecting to receive messages must have
/usr/sbin/rpc.walld running. That daemon receives messages and relays those messages as a local message using
wall. Therefore, editing rc.shutdown would provide one way to broadcast a shutdown message.
From what I understand, rwalld normally is run from within inetd.
There is an associated file named
/etc/netgroup. Rather than try to send a network message by individual host name, the
-n command switch can be used and the systems listed in /etc/netgroup will receive the message.
I haven't yet figured out how to broadcast a message across a LAN using the /etc/netgroup file. The version included with Slackware does not seem to support the
-n switch. At least I could not get that option to work and the man page does not address that option. I'd be happy to hear from anybody who gets that feature to function correctly on Slackware.
A caveat to all of this is if the receiving machines do not have rwalld running then the result is an error message.
Related to that idea is a tool called
rwho, which depends upon the rwho daemon (
rwhod). If the rwho daemon is running, the rwho command should return who is logged on across a network. That would provide one way to know who should receive a shutdown message from a server. That would provide an alternate method to /etc/netgroup not working. I haven't yet figured out the nuances of those commands because when I tested today, one machine reported users logged in at another system but a second machine reported only local logins. On the other hand, perhaps the problem is only some initial latency with gathering data because later both machines correctly reported all logins. If I understand correctly, the rwho mechanism succeeds only if the rpc.walld is running.
To continue my original post, I haven't yet discovered any unique graphical tool that will provide nice looking messages in KDE. The resulting popup from the KDE Write Daemon is crude although functional. Second, as I am not an Xfce user, I don't know how Xfce users would receive an equivalent graphical popup. Please share for future users if you know a way.
Quote:
You can use netcat to br[o]adcast a message over the lan and netcat to listen for messages on a port.
|
Quote:
Uhhh... to always have netcat listening on an open port? I would trust wall and xmessage over that.
|
Clever.
![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
I like the simplicity in which netcat could send a message, but I agree I would not want a terminal window running all the time to receive the message. Also, the wall method seems a better method for KDE to intercept.
Quote:
A word of advice: if you need this so badly, why don't you implement it yourself? Then share it with the rest of the networked world.
|
Eric, sometimes your attitude is condescending and disrespectful. Just because you get to work with computers all day long for a living does not mean the rest of us are gurus or have the same amount of time to tinker all day like you. There are folks here trying to help each other. I'm not a carpenter yet I built my own home. Not completely by myself because I did not possess all the required knowledge or equipment, and often I needed more than two hands. The same approach applies to computers --- sometimes people need additional knowledge or equipment, and sometimes they need more than two hands (or two heads).
Oh, and I believe I just did share a solution.
![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)