#!/bin/sh
# filename: vfind_lb.sh
#
# Example shell script to execute vfind and the loopback 
# programs.
# Read the comments contained in this script, then modify for 
# your own site.
######################################################
# put out warnings in the script for the user to see.
echo "#######################################################"
echo "#                   W A R N I N G                     #"
echo "#                                                     #"
echo "#  This is file vfind_lb.sh                           #"
echo "#  This is only an example script.  Please modify it, #"
echo "#  as necessary, for your site.                       #"
echo "#                                                     #"
echo "#######################################################"
echo " "
######################################################

####
#  The environment variable BIN_DIR may need to be modified for each installation
####

BIN_DIR=/usr/bin
export BIN_DIR

  find / -type f -print | egrep -v '^(/dev/|/proc/)' | \
  ${BIN_DIR}/lbh -db=lb.db | \
  ${BIN_DIR}/vfind | \
  ${BIN_DIR}/lbt -db=lb.db -r=4 | \
  mail root
