-   General (
-   -   Broadcasting Server Messages to the network. (

mikeyt_333 06-06-2002 01:19 PM

Broadcasting Server Messages to the network.
I just came accross this post:

And what he is referring to is exactly what I would like to be able to do so I can notify users when the server is rebooting etc... Sounds like he had some mal-intent, but this could really be useful to me. Does anybody have a clue how to do something similar to this? What I would like to do is broadcast a message from my server (RH 7.2) to the user systems (windows 98), what the messages will be, I'm not sure yet, but I know one I will want to have is the shutdown notification. Does Linux have this built in already? How does one tap this resource?

Thanks in Advance!

acid_kewpie 06-06-2002 05:30 PM

you'd use the wall command. i *think* that if you install the rwalld network service then the rwall command will broadcast to the whole network

mikeyt_333 06-07-2002 11:57 AM

This works with users logged into a host, is there a way to do it when users aren't logged into a host, my server is strictly a file server not a domain server of any kind. Could it maybe be done using Instant Messenger? I will research some more ;-)

Mik 06-13-2002 08:55 AM

You can send messages to windows machines using the smbclient program. You can even set the name who it's coming from too. In windows you can use the wildcard * to send to everybody on the same domain. I don't know if that will work from a linux machine. I really don't want to try it here.

smbclient -U Reminder -M hostname

The command expects you to type the message and then use ctrl-d to terminate. But I'm sure you could redirect the input so you can send a fixed message.

All times are GMT -5. The time now is 01:14 AM.