Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088

This commit is contained in:
Robin Sommer 2010-09-27 20:42:30 -07:00
commit 61757ac78b
1383 changed files with 380824 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#!/bin/sh
#
# script to check if rsync of logs has finished, and runs site-report.pl
#
# usage: frontend-mail-report.sh BroConfigFile
#
# where are we located
base=`dirname $0`
#set up the environment
if [ $1 ] ; then
. $1
else
. $base/../etc/bro.cfg
fi
echo " "
echo "`date`: checking if reports are ready to mail:" $BROHOME/logs/MailReports.$BRO_HOSTNAME
# only run if file $BROHOME/logs/MailReports.$BRO_HOSTNAME
if [ -e $BROHOME/logs/MailReports.$BRO_HOSTNAME ] ; then
echo "Reports ready: Running mail reports script"
$BROHOME/scripts/mail_reports.sh $1
rm $BROHOME/logs/MailReports.$BRO_HOSTNAME
else
echo "Reports not ready"
fi