View previous topic :: View next topic |
Author |
Message |
thaldyron Apprentice
Joined: 25 Sep 2002 Posts: 227 Location: On Earth
|
Posted: Tue Jun 03, 2003 2:55 pm Post subject: using Windows message service |
|
|
Is there a way to send a message from a Linux machine to a Windows machine using the Windows message service (maybe Samba?!) ?
In DOS it looks like this: Code: | net send host message |
|
|
Back to top |
|
|
dberkholz Retired Dev
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Tue Jun 03, 2003 3:40 pm Post subject: |
|
|
man smbclient 2/-M wrote: | 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 occur.
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 through smbclient. For example: cat mymessage.txt | smbclient -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. |
|
|
Back to top |
|
|
thaldyron Apprentice
Joined: 25 Sep 2002 Posts: 227 Location: On Earth
|
Posted: Tue Jun 03, 2003 4:47 pm Post subject: |
|
|
Thanks, should have looked myself... |
|
Back to top |
|
|
|