LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2005, 05:18 AM   #1
muldereric
LQ Newbie
 
Registered: Jul 2005
Distribution: RH9 2.4.20-8
Posts: 16

Rep: Reputation: 0
Broadcasting message to Windows machines


At my work we are using a RH9 fileserver. Sometimes this server is taken down for maintenance. When you switch to another runlevel a nice message "The system is going down for ... NOW!". This message is only broadcasted to local users, but I wish it would also be broadcasted to the connected Windows clients (like messages that you can send from within Windows using the net send command).
What program do I have to use for this and how can I run this when we switch to another runlevel?

Last edited by muldereric; 08-10-2005 at 05:20 AM.
 
Old 08-10-2005, 10:11 AM   #2
Chuckinator
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
I believe "smbclient -M" will send messages to windows machines (like net send). From the smbclient man page:
Quote:
-M NetBIOS name
This options allows you to send messages, using the "WinPopup" protocol, to another computer.
Once a connection is established you then type your message, pressing ^D (control-D) to end.

If the receiving computer is running WinPopup the user will receive the message and probably a
beep. If they are not running WinPopup the message will be lost, and no error message will oc-
cur.

The message is also automatically truncated if the message is over 1600 bytes, as this is the
limit of the protocol.

One useful trick is to cat the message throughsmbclient. For example: cat mymessage.txt | smb-
client -M FRED will send the message in the file mymessage.txt to the machine FRED.

You may also find the -U and-I options useful, as they allow you to control the FROM and TO
parts of the message.

See the message command parameter in the smb.conf(5) for a description of how to handle incoming
WinPopup messages in Samba.

Note: Copy WinPopup into the startup group on your WfWg PCs if you want them to always be able
to receive messages.
I'm not sure how to automatically send a message when you switch runlevels, though.
 
Old 08-11-2005, 04:29 AM   #3
muldereric
LQ Newbie
 
Registered: Jul 2005
Distribution: RH9 2.4.20-8
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Chuckinator
I believe "smbclient -M" will send messages to windows machines (like net send). From the smbclient man page:
I'm not sure how to automatically send a message when you switch runlevels, though.
Thanks for your help. The smbclient -M command works just fine, but I still have to find out how to send a message to the whole workgroup, or I have to send a separate message to every client which I don't like :P
 
Old 08-11-2005, 10:29 AM   #4
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
With net send, you can send the message to the "domain" or the "workgroup". I'm guessing you could do the same here.
 
Old 08-11-2005, 10:36 AM   #5
muldereric
LQ Newbie
 
Registered: Jul 2005
Distribution: RH9 2.4.20-8
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Kdr Kane
With net send, you can send the message to the "domain" or the "workgroup". I'm guessing you could do the same here.
The manual page shows you have to enter a netbios name, don't think it will work when entering the domain name
 
  


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
Broadcasting message to Microsoft Window clients bpkihs Linux - Networking 2 05-16-2004 01:13 PM
Broadcasting message to Microsoft Window clients bpkihs LinuxQuestions.org Member Intro 1 05-16-2004 12:23 PM
Need to generate popup message on Linux machines professorfrink Linux - General 4 11-14-2003 11:46 AM
IP Masq To Windows Machines djmoss Linux - Networking 2 05-30-2002 08:59 PM


All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration