in reply to Sending messages in the network

I also wonder about the nature of this request, but I firmly believe in user education and presumption of innocence.
You should be able to send a NetBEUI message by calling out to net send ala  my $returnval = `net send $options $message` and fill as appropriate. Or, you can use Win32::Message, see the Send() function.

I would strongly encourage you to consider how you use this code. I hope you're using it to send yourself network alerts, or alerting your users of a problem, server shutdown, etc. If you're using it to send messages to unknown strangers on the internet or your LAN, I'll track you down and teach you the real meaning of use strict;

ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Replies are listed 'Best First'.
Re: Sending messages in the network
by Hydro (Acolyte) on Nov 11, 2003 at 16:12 UTC
    I have written a perl application using the Win32::GUI module that does this. Our Security department here at the college needed a way to send out messages to all the administrative offices such as severe weather alerts, power outtages, etc. Just recently there was a bank robbery just a few blocks from the campus. This application is password protected to prevent malicious use in case it ever got into the wrong hands.

    This application will allow for 'canned' messages to be saved as well in case they ever need to use a recurring message. It still neeeds some tweeking but it's a lot easier than the net send command.

    I don't think everyone has a malicious intent for an application like this.

    Jonathan Southwick
    Allegheny College, Meadville, PA
    jonathan.southwick@allegheny.edu
Re: Re: Sending messages in the network
by Avtar (Initiate) on Feb 03, 2004 at 17:22 UTC
    Is this applicable to Unix too. I am new to perl and dont know how to use this code in a script.