Originally Posted by adhar
I am very new to linux environment. I need a solution where I can send email from my linux command prompt. I have a linux server where Oracle is installed and I have a seperate SMTP server for mailing purpose for my office. Now based on some activity in the oracle I need to send email from this server automatically to the respective email id's in the company. As I told earlier I have a SMTP server, I only need to send mail from the oracle installed linux server to the individuals. I have installed RHEL 5.3 where oracle is running.
One senario is when oracle writes a file say a alert file or trace file in the path say /oracle/admin/udump/trace directory a email will be send to our dba at email@example.com
Mean to say when a OS file is generated or updated in the above linux path a mail should be fired from linux command prompt
PLZ HELP URGENTLY!!!
to be able to send mail from your linux server, you need to have a mail service pacakage installed (like sendmail mutt etc)
You can check it by using
#ps -aef |grep mail
#rpm -qa |grep mail
we you get pacakage name then try following command
#echo “Test mail, ” | mail -s “test” firstname.lastname@example.org
Let me know if this helps