************** try script like this works fine for me HOSTS=`/usr/local/samba/bin/smbstatus -b | tail -n +5 | cut -c19-26` for PC in $HOSTS do cat $1 | /usr/local/samba/bin/smbclient -M $PC done ************** Peter Lingen Tel.: +49 2166 27 2646
Peter.Lingen@wrh.acab.alcatel.de wrote:> ************** try script like this works fine for me > HOSTS=`/usr/local/samba/bin/smbstatus -b | tail -n +5 | cut -c19-26` > for PC in $HOSTS > do > cat $1 | /usr/local/samba/bin/smbclient -M $PC > done > ************** > > Peter Lingen > Tel.: +49 2166 27 2646Just out of curiosity is there any software out there that lets me go the other way? E.g. listen for messages and log them somewhere? -- | Charles R. (C. R.) Oldham | NCA Commission on Schools | | cro@nca.asu.edu | Arizona St. Univ., PO Box 873011,| | V:602/965-8700 F:602/965-9423 | Tempe, AZ 85287-3011 _ | | "I like it!"--Citizen G'Kar | #include <disclaimer.h> X_>|
On Fri, Feb 12, 1999 at 03:45:58AM +1100, C. R. Oldham wrote:> > > Peter.Lingen@wrh.acab.alcatel.de wrote: > > > ************** try script like this works fine for me > > HOSTS=`/usr/local/samba/bin/smbstatus -b | tail -n +5 | cut -c19-26` > > for PC in $HOSTS > > do > > cat $1 | /usr/local/samba/bin/smbclient -M $PC > > done > > ************** > > > > Peter Lingen > > Tel.: +49 2166 27 2646 > > Just out of curiosity is there any software out there that lets me go > the other way? E.g. listen for messages and log them somewhere?Hi There is an smb.conf entry calles "message command" for this. Greetings, Florian Pflug
I am using old version of samba, i.e. 1.9.18p8 in RH 5.1 with a few windoz clients... I have tried the 'smbclient -M client', but the message just went away somewhere. It never appear on any machine I have tried. What is the root cause of this problem ? Do I have to set any thing in windoz clients ? Thanks for your advice. Panyarak