[Samba] Broadcast message with smbclient -M

Dragan Krnic dkrnic at lycos.com
Sat Jun 7 13:08:55 GMT 2003


>Is there a way to broadcast a message with
>smbclient -M?
>
>Also, is there some utility out there with
>user interface where I can select which
>machines should receive the message and
>then send it out?

Not that I know, but any scripting language
can accomplish that without much sweat, e.g.

   for i in $(smbstatus | awk '
BEGIN {do getline;while(substr($0,1,1)!="-")}
$0 == "" { exit }
{print $5 }' | sort | uniq)
   do   echo "Attention." | smbclient -M $i
   done

which pops up and "Attention." window on each
active user's screen exactly once.

It's up to you to add some eye-candy with a
squirt of Tcl/TK or something.

Cheers
Dragan


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005



More information about the samba mailing list