LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-20-2005, 11:03 AM   #1
paulwong
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
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.
 
Old 07-20-2005, 11:21 AM   #2
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

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

What 'message' do you want to send to your client? pop-up? mail? file?
 
Old 07-21-2005, 08:07 AM   #3
paulwong
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 07-21-2005, 08:19 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
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).
 
Old 07-21-2005, 04:22 PM   #5
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
If you have X terminals, you can make a small script that will grep DISPLAY through /proc/*/environ.
 
Old 07-21-2005, 04:43 PM   #6
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
also u can use the command "wall". that is for example .... wall "your system is going for shutdown in 15 minutes"
 
Old 07-22-2005, 10:55 AM   #7
paulwong
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending a message from the server to all machines on the network vmniza Linux - Networking 2 06-09-2005 04:39 AM
sending Objects from Server to Client djgerbavore Programming 0 10-04-2004 01:09 PM
Sending message ieuuk Linux - Networking 2 08-29-2004 09:47 AM
sending broadcast message in c raven Programming 1 12-06-2003 02:55 PM
Sending of message error mauroblanc Linux - Networking 1 10-28-2003 09:28 AM


All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration