#!/bin/sh

# goes through the weekend dbcc outputs looking for errors
# runs at 7am monday mornings...dbcc start 2am sat mornings.

# 2/10/97	T.Boss	creation
# 7/28/97	T.Boss	modify to run out of /export/syb_ops on max
# 8/11/97	T.Boss	modify to check dated subdir containing dbcc out files

SWHOME="/export/syb_ops/swatch"

cd /export/syb_ops/dbcc/
#DATE=`date +%y%m%d`
DATE=970814
DATE=`expr $DATE - 2`

cd $DATE
for name in `ls *.dbcc.*`
do
   $SWHOME/swatch -c $SWHOME/swatchrc -f $name
done