rchilson11
Technical User
DT=`echo $1`
NOTIFY=rchilson@hotmail.com
PROD_DIR=/apps*
if [ "$DT" = '' ] || [ "$DT" = ' ' ] ; then
DTPULL=`date -d yesterday '+%Y-%m-%d'`
else
DTPULL=`date --date "$DT" '+%Y-%m-%d'` || exit -1
fi
(
TOT=`dsh -g prod "gzcat /apps*/servlet-timer.log.2010-12-13* | grep 2009" | wc -l`
echo "Transaction Report: $DTPULL $HOSTNAME"
echo ""
echo " 2009............................................:$TOT
echo ""
) | mailx -s "Prod Transaction Stats for: $DTPULL" $NOTIFY
NOTIFY=rchilson@hotmail.com
PROD_DIR=/apps*
if [ "$DT" = '' ] || [ "$DT" = ' ' ] ; then
DTPULL=`date -d yesterday '+%Y-%m-%d'`
else
DTPULL=`date --date "$DT" '+%Y-%m-%d'` || exit -1
fi
(
TOT=`dsh -g prod "gzcat /apps*/servlet-timer.log.2010-12-13* | grep 2009" | wc -l`
echo "Transaction Report: $DTPULL $HOSTNAME"
echo ""
echo " 2009............................................:$TOT
echo ""
) | mailx -s "Prod Transaction Stats for: $DTPULL" $NOTIFY