Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> mailx is not working

mailx is not working

From: muddu <mudassar.dba_at_gmail.com>
Date: 31 Aug 2006 11:23:44 -0700
Message-ID: <1157048624.111235.225920@b28g2000cwb.googlegroups.com>


Hi ,

I am running a simple unix script but mailx option is not working . please help me out.

DAT=`date +%m%d%Y`
MAIL=mudassar.dba_at_gmail.com
AUDIT_DIR=$ORACLE_HOME/rdbms/audit
DIR=/opt/oracle/adminscripts
. $DIR/parfiles/jobprofile

cd $AUDIT_DIR

#merge all .aud files to audit.log

cat *.aud > audit_$DAT.log

mv audit_$DAT.log $DIR/logs/audit/
cd $DIR/logs/audit/

#send audit.log to the mail recipient

mailx -s "Audit log file" $MAIL < audit_$DAT.log

Thanks. Received on Thu Aug 31 2006 - 13:23:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US