Hi All,
My script will call a storedprocedure
#!/bin/bash
#
# Script for ...........
. ../conf/setting.env # Environment file to set the DATABASE
#TODAY=`date '+%Y%m%d_%H'`
#echo TODAY = $TODAY
sqlplus -s $DATABASE <<EOF
spool $TRACKING_LOGDIR/CalcFreqPgsVues_H.log
exec CalcFreqPgsVues_H ('$TODAY');
commit;
exit;
EOF
cat $TRACKING_LOGDIR/CalcFreqPgsVues_H.log >> $TRACKING_LOGDIR/OFR_CalcFreqPgsVues_H.log
My last line in the script (cat command) is not executing....
I need to append my log files in the last line....Is it becos of exit command before that..? any suggestions to overcome this ?? Or Can i append log files inside sqlplus. ?
Thanks and Regards,