#!/bin/sh
# filename: vstkuad_solaris.sh
#
# Example shell script to execute vfind
# 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 vstkuad_solaris.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 modifying for each installation.
####

BIN_DIR=/usr/bin
export BIN_DIR

find / \( \( -type f -a -local -a ! \( -name core \) -a ! \( -fstype proc \) -a -perm -u+r,-g+r,-o+r \) \) -print | \
${BIN_DIR}/uad -s -ssw | \
${BIN_DIR}/vfind -ssr | \
grep "##==>>" | \
mail root
