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 PROTECTED] << 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:[EMAIL PROTECTED]  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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to