#!/bin/ksh # Program: chk_db_status # Purpose: This script verifies the database is running # Author: Adam Backman # Date Written: 03/09/98 # # Check to see if the database is up or down proutil $DB_DIR/$DB -C busy 2>/dev/null >/dev/null if [ $? -ne 0 ] then echo "The " $DB_DIR/$DB " database is alive" exit 0 else echo "The " $DB_DIR/$DB " database is down" exit 1 fi