I wrote a small script for doing this very thing and posted it here about a month or two back:

#!/usr/bin/perl

my $msg = shift;
open PIPE, "smbstatus |";
foreach $line (<PIPE>) {
  if($line =~ /\d+\s+(\S+)\s+\S+\s+(\S+)\s+\((.+)\)/) {
    system "echo '$msg' | smbclient -M $2 -I $3";
  }
}

Michael Brown wrote:
I don't believe you can send a message to a whole domain using smbclient (please someone correct me if I'm wrong), I think you will have to do it one at a time, or write a script:

$ smbclient -M host <then will prompt for message>

Hope this helps.

Michael Brown

On Thu, 12 Feb 2004 15:07:19 +0100
"Anders Norrbring" <[EMAIL PROTECTED]> wrote:


Is it possible to send a pop-up message to all connected Windows stations in a
whole domain via one command, or is it necessary to send one message per
command to each station?  It must be a command line utility since X isn't
running on the server.


Anders Norrbring


-- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to