LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Sending message from server to client (https://www.linuxquestions.org/questions/linux-networking-3/sending-message-from-server-to-client-345005/)

paulwong 07-20-2005 10:03 AM

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.

flupke 07-20-2005 10:21 AM

Pls be more precise : what server? http? ftp? smb? nfs?

What 'message' do you want to send to your client? pop-up? mail? file?

paulwong 07-21-2005 07:07 AM

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.

fr_laz 07-21-2005 07:19 AM

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).

flupke 07-21-2005 03:22 PM

If you have X terminals, you can make a small script that will grep DISPLAY through /proc/*/environ.

vimal 07-21-2005 03:43 PM

also u can use the command "wall". that is for example .... wall "your system is going for shutdown in 15 minutes"

paulwong 07-22-2005 09:55 AM

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.