#!/bin/sh TOP_DIR=/home/robocop/robTester/svnRobTester cd $TOP_DIR grep -e "** E_R_R_O_R :" $TOP_DIR/out_db > ./report_db.log DB_ERR="OK"; if [ -s ./report_db.log ] || [ -s ./out_err_db ] ; then DB_ERR="ERROR"; else DB_ERR="OK"; fi # Write file for the production database rm -f db_summary2.log echo "Db_upload: $DB_ERR" > db_summary2.log rm report_db.log