#!/bin/bash
###############################################################################
#
HOME=/home/support/jobs
EMAILS=email goes here
export ORACLE_HOME=/u01/app/oracle/product/9.2.0
export TNS_ADMIN=/var/opt/oracle
cd $HOME
$ORACLE_HOME/bin/sqlplus -s /nolog @/home/support/jobs/
package_delete_mail.sql
#echo `date` | mail -s "Deleted Package Report:`date`" -a $HOME/
package_delete_log.txt $EMAILS
cat package_delete_log.txt | mailx -s "Deleted Package Report" $EMAILS
exit
I tested with just making a text file and some lines which worked so I
am not understanding the difference. My two options are results in
the message body or as an attachment so please don't offer other
suggestions. Thanks.