Sending message from server to client
Hi:
How can i send message from my linux server to linux clients? I have two clients running off the server (Mandriva). Thanks for the help. |
Pls be more precise : what server? http? ftp? smb? nfs?
What 'message' do you want to send to your client? pop-up? mail? file? |
It is a terminal server, as I have mentioned there are two terminal clients running off it.
It is pop-up message that we need. For example, when we need to reboot the server, we would like to send pop-up messages to the users asking them to log off within 5 minutes. Thanks for the help. |
Hi,
you can use msg, which writes a message to the console opened by another user, or xmessage which opens a pop-up on the X display... I think you'll prefer xmessage, but it looks like you'll need to do an export DISPLAY before so that you can select the right Xsession(s). |
If you have X terminals, you can make a small script that will grep DISPLAY through /proc/*/environ.
|
also u can use the command "wall". that is for example .... wall "your system is going for shutdown in 15 minutes"
|
Thanks for the help.
Vimal , command "wall" works; however the clients must have their terminal already opened to receive the message. Is it possible to make it as a pop-up? fr_laz , sorry that I am a newbie hence I don't entirely understand your reply. Are "msg" and "xmessage" commands or programme? I tried them as commands but they dont work; I searched on the internet and I haven't found much more clues either. Would you mind to explain more in detail? My linux server is running Mandriva with KDE display manager (KDM) as default; the clients and users are all using KDM too. Really appreciate your patience and help. |
All times are GMT -5. The time now is 02:31 PM. |