#!/bin/bash ############################################################################## # # Variables: You can edit these variables # emailRecipient=security@mycompany.com TMPFILESTUB=/tmp/check-asm-profiles.`/bin/hostname | cut -f1 -d'.'` RUNDIRECTORY=/root/bin/ ########################################## # # Don't edit below this line OLD=$TMPFILESTUB.old NEW=$TMPFILESTUB.new DIFF=$TMPFILESTUB.diff cp -a $NEW $OLD $RUNDIRECTORY/list-asm-profiles.bash > $NEW diff -U0 $OLD $NEW | grep -v @@ | tail -n +3 > $DIFF if [[ -s $DIFF ]] ; then mail -s "F5 ASM profile changes" $emailRecipient < $DIFF rm $DIFF fi ;