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 -> Re: mailx is not working

Re: mailx is not working

From: muddu <mudassar.dba_at_gmail.com>
Date: 31 Aug 2006 14:53:43 -0700
Message-ID: <1157061223.557087.90890@m73g2000cwd.googlegroups.com>

joel garry wrote:
> muddu wrote:
> > 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.
>
> Is mailx not working everywhere or just in this script? Which type of
> unix are you on?
>
> Perhaps you don't have everything mailx needs? Have you modified
> sendmail.cf to turn on mail (on my hp-ux, I had to define DS and D$w so
> it knew where the mail server is, see
> http://groups.google.com/group/comp.sys.hp.hpux/msg/114cdd3f6cb72d67 )?
>
> Are you getting mail back saying there were errors? Are you trying to
> send something bigger than your mail allows?
>
> Daniel is right, this might be better asked in a unix forum. See
> http://www.dbaoracle.net/readme-cdos.htm
>
> jg
> --
> @home.com is bogus.
> http://motd.ambians.com/quotes.php/name/linux_songs_poems/toc_id/1-1-31/s/30

Mailx is working in some servers and in some it is mailing. I am using different versions of oracle such as 9.2.0.7.0, 9.2.0.4.0, 8.1.7.4.0, 10.1.0.3.0 and solaris 9 version.
It is working in stage servers and not in production servers. Received on Thu Aug 31 2006 - 16:53:43 CDT

Original text of this message

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