Displaying 1 result from an estimated 1 matches for "lolead".
Did you mean:
colead
1998 Jun 02
0
SAMBA digest 1706
...; Thanks for any help you can offer,
>
> - Jeff Wiegley
The script I'm running, once a minute from cron, as root:
-------------------------------------------------------------------
#!/bin/sh
#
# If master host loses samba browse master, restart nmbd.
#
TMPFILE=/root/tmp/.grab$$
MASTER=lolead
/usr/bin/smbclient -N -U guest -L ${MASTER} |\
/bin/sed -n '/Workgroup..*Master/,$p' > ${TMPFILE}
b=$(/bin/fgrep ${MASTER} ${TMPFILE})
if [ "$b" ]; then
if [ -f /root/RESTART_NMBD ]; then
rm -f /root/RESTART_NMBD
mail root <<EOF
${MASTER} nmbd regained browse ma...