#!/bin/sh 

# front end to dbcc.sh, dr.sh

# 8/1/97	T.Boss	added sybping ability
# 8/11/97	T.Boss	added -I option to sybping; cron doesn't have $SYBASE

cd /export/syb_ops/weekend

#for name in prod10 prod11 crimson prod
#for name in prod10 crimson prod
#for name in prod11
#for name in prod11 crimson prod CC crimson_dev

for name in prod11 crimson prod crimson_dev peter mdb syb_dicom_svr new_crimson
do
   /export/syb_ops/misc/sybping.pl -S$name -I/export/sybase11/interfaces
   if [ $? = "0" ]
   then 
      dr.sh $name
   fi
   sleep 5
done

for name in prod11 crimson prod crimson_dev peter mdb syb_dicom_svr
do
   cd /export/syb_ops/weekend
   dbcc.sh $name &
   sleep 5
done