Hey Guys,
I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16: `HOSTNAME=$' unexpected
#
SUBJECT="Daily-Checks"
EMAIL="#########"
BODY="output.txt"
#
#
echo +----------------------------------------------------------------------------------------------------------+ >> $BODY
echo +----------------------------------------------------------------------------------------------------------+ >> $BODY
#
#
echo This is the date of this Daily Check >> $BODY
echo PDBS02 - Database Server 2 >> $BODY
date >> $BODY
#
echo ----------------------------------------------------------------------------------- >> $BODY
echo >> $BODY
#
#
cd /export/home/oracle
. ./envptnt2
echo " SHOW PROBLEM; SHOW INCIDENT " >> $BODY
echo ----------------------------------------------------------------------------------- >> $BODY
echo >> $BODY
#
adrci EXEC="SHOW PROBLEM; SHOW INCIDENT" >> $BODY
#
#
echo >> $BODY
echo ----------------------------------------------------------------------------------- >> $BODY
echo >> $BODY
#
#
#
###########################################################################
# Email Output files to RMS #
###########################################################################
#
#
mail -s "Daily Checks DB" $EMAIL < $BODY
#
#
sleep 10
###########################################################################
# Remove Output file #
###########################################################################
#
#
rm -rf /export/home/oracle/output.txt
rm -rf /export/home/oracle/Daily_Checks/output.txt
Thanks for the help...