Net send command in terminal?

Discussion in 'macOS' started by rasmusschaal, Dec 26, 2007.

  1. rasmusschaal macrumors member

    Dec 4, 2007
    In denmark, Århus
    Hi does anyone know a command in Terminal similar to the Net Send in CMD PROMPT in windows?
    Im trying to send to my brothers computer which is a PC.
  2. davethewave macrumors member

    Jul 30, 2007
    Trieste, Italy
    example of complete usage:
    echo "hello" > smbclient -M WINMACHINE

    FYI: open terminal then "man smbclient"
    -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 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.

Share This Page