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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Send Mail in Unix

Re: Send Mail in Unix

From: Ceri Townsend <dba_at_persistent-worlds.net>
Date: Thu, 13 Feb 2003 09:29:07 -0800
Message-ID: <F001.0054C2AB.20030213092907@fatcity.com>


Hi I have a function called mail_dba which i load in my .profile

In .profile

FPATH=$ORACLE_BASE/admin/$ORACLE_SID/dbafuncs export FPATH
autoload mail_dba

Then in the location specified by FPATH i have a file called mail_dba which contains the following:

mail_dba_ ()
{
mailx email_at_address.here << EOF
~s$1
~r$2
EOF
}

This says that the first parameter i pass is the subject, and the second is a file to mail.

Then i invoke it like this:

mail_dba "Email Subjest" name_of_file_to_send

Hope this helps.

Cheers

Ceri

Thanks

Ceri
--

Ceri Database Administrator mailto:dba_at_persistent-worlds.net ICQ:153010767

"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Ceri Townsend
  INET: dba_at_persistent-worlds.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Feb 13 2003 - 11:29:07 CST

Original text of this message

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