I don't see why that wouldn't work on a non-Linux server. Am I missing
something here?
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
On Tue, 1 Jul 2003, Hindman, Mike J wrote:
> Unfortunatly it is not :(*
>
>
>
> -----Original Message-----
> From: Thomas Bork [mailto:tombork@web.de]
> Sent: Tuesday, July 01, 2003 11:42 AM
> To: Hindman, Mike J
> Cc: samba@lists.samba.org
> Subject: Re: RE: [Samba] Re: Winpopup message to all user on a PDC
>
>
> Hi Mike,
>
> > Except.. Most of my net sends don't end up working.. They fail
unless
> I
> > explicitly do a nmblookup and specify the broadcast to find that
> > computer..
> [...]
> > Seeing how im dealing with the entire contents of 10.x.x.x around
> > 20,000 computers that I may have to contact for some reason.. Its easy
> > for me to know there netbios name.. As its there login name.. However
> > there subnet is a whole different ballgame.. Im hoping it will clear
> up
> > after browse lists have propagated in a few days.. But if you have any
> > ideas let me know..
>
>
> if your PDC is an Linux-Samba-Server and the clients have active
> connections:
>
> int_samba_version=`smbd -V | cut -d" " -f2`
>
> status=`smbstatus -b \
> | grep -vi "Samba version $int_samba_version" \
> | grep -vi "PID Username Machine
> Time logged in" \
> | grep -vi "-" | grep '[1-9]' | cut
-c19-48`
>
> if [ "$status" = "" ]
> then
> echo
> echo "No Samba Client activ"
> echo
> exit 1
> else
> echo
> for i in $status
> do
> echo sending message to "$i" ...
> echo $message|smbclient -U "eisfair Samba Server"
-M "$i"
> 1> /dev/null
> if [ "$?" != "0" ]
> then
> echo
> echo "Sending Message to $i failed!" br x br
> fi
> done
> fi
>
>
> der tom
> ________________________________________________________________________
> ______
> UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
> UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>