Sending message To Remote User

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cnsabar
    New Member
    • Dec 2007
    • 40

    Sending message To Remote User

    Hi..

    I am using the following module to send a message to other computer.

    [code=perl]
    use Win32::NetSend;
    my $NetSend = Win32::NetSend->new( to => "10.0.3.40|user name", message => "Test Msg!");
    $NetSend->Send();
    [/code]

    Here I am facing the problem is,
    If the IP address, I specified is using more than one users means (server), this code will send the message to all connected users.

    I want to send a message to particular user in remote login..
    i.e user under specified IP address.

    kindly suggest any one reg. this
    Thanks
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by cnsabar
    Hi..

    I am using the following module to send a message to other computer.

    [code=perl]
    use Win32::NetSend;
    my $NetSend = Win32::NetSend->new( to => "10.0.3.40|user name", message => "Test Msg!");
    $NetSend->Send();
    [/code]

    Here I am facing the problem is,
    If the IP address, I specified is using more than one users means (server), this code will send the message to all connected users.

    I want to send a message to particular user in remote login..
    i.e user under specified IP address.

    kindly suggest any one reg. this
    Thanks
    Unfortunately I haven't used this module before, but I do have a question. Where did you find that format of "to => ipaddress|user" ? I don't see that on the module documentation page.

    I just want to look at the same documentation as you, that way we are all on the same page.

    Regards,

    Jeff

    Comment

    • cnsabar
      New Member
      • Dec 2007
      • 40

      #3
      Hello Jeff,

      I referred the link that you provided..

      Yes, In documentation it specifies "to => "user" ".
      I checked with providing IP address, its working fine...

      I want to send a msg to a "user@speci fied IP address". Just to quote this ques to understand all...
      I mistakenly specified in the code area "to => ipaddress|user" .

      Hope you will get my point.

      Looking forward for Ur reply.
      Thanks,
      Originally posted by numberwhun
      Unfortunately I haven't used this module before, but I do have a question. Where did you find that format of "to => ipaddress|user" ? I don't see that on the module documentation page.

      I just want to look at the same documentation as you, that way we are all on the same page.

      Regards,

      Jeff

      Comment

      Working...