ubuntu - smbclent send message Windows User

05
2014-04
  • Benjamin Jones

    I am trying to send a message to a Windows User from a Ubuntu User on the same LAN subnet. I can see the user's computer and PING IT from Ubuntu.

    cat mymessage.txt | smbclient M BRIDGE2
    

    Error:

    Connect to BRIDGE2 failed. Error NT_STATUS_BAD_NETWORK_NAME.
    

    How could this be? THe only difference is that the Windows computer in question is connected to a domain and the Ubuntu computer that is trying to send the message is NOT on a domian.

    Any suggestions?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    windows - Sending message to a remote user using msg
  • Searock

    How can I send a message form one user to another user using msg command if both accounts are on same server and are using a client machine?

    I know the basic use of msg command.

    msg "username" "message you want to send

    What parameters should I pass here so that other user can get my message?


  • Related Answers
  • JNK

    MS doc on the syntax is here.

    Your syntax looks fine, but you may need to enter the server or session name.

    The msg command uses the domain to contact the user, so as long as they are on your domain with domain credentials it will send to whatever PC they are on.

  • nixda
    msg /SERVER:<server_name> * /TIME:<time_in_seconds_to display> "<message_text>"
    

    Just edit the text. Dont delete ", * or /. Write them as they are.