General
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i get unix to send an email

 
SOLVED
Go to solution
Mousa55
Super Advisor

How can i get unix to send an email

Hi
how do i send the message to my E-mail from HP unix server (rp8420 11.11i).
this e-mail include logs file and another information about DB in server.
how do i this?
19 REPLIES 19
Shrikant Lavhate
Esteemed Contributor

Re: How can i get unix to send an email

Hi,

use mail command. and attahced the files using redirector. Before attching make a tar file all logfiles you want to attched.

Will it remain a personal, if I broadcast it here!
Jeeshan
Honored Contributor

Re: How can i get unix to send an email

Hi Nejad

develop a shell script about system information to mail you.
But first thing you must sendmail configuration in HP-UX server.

About DB information you can make a procedure in your database which will also mail you.
a warrior never quits
Shrikant Lavhate
Esteemed Contributor

Re: How can i get unix to send an email

Yes, ahsan is more deep and efficient way to your problem. What i have suggested is simple command line way for short type of mails. :D
Will it remain a personal, if I broadcast it here!
Mousa55
Super Advisor

Re: How can i get unix to send an email

Hi
i need by step how to unix server send to me
message to my e-mail (exchange server).
plz help me
thanks
Shrikant Lavhate
Esteemed Contributor

Re: How can i get unix to send an email

Simple format

#mail -s "Subject:...." abe@xyz.com
you can use -t option to send mail to Unix account only.

Embed this format into your script to automate the process.

Ahsan may put some light on script you can use. Check man page for mail for more details.
Will it remain a personal, if I broadcast it here!
Jeeshan
Honored Contributor

Re: How can i get unix to send an email

Nejad

Did you configure your sendmail to send mail to exchange server?
a warrior never quits
Shrikant Lavhate
Esteemed Contributor

Re: How can i get unix to send an email

FYI,

Internet express for HPUX is shipped with many utilities like fetchmail, Hypermail etc. which are related to file transfer and mailing in hpux.

You can have a look at this toolkit on www.software.hp.com

You may find this useful.
Will it remain a personal, if I broadcast it here!
Mousa55
Super Advisor

Re: How can i get unix to send an email

hi
no i am not configured, and how i do it?
thanks
Shrikant Lavhate
Esteemed Contributor

Re: How can i get unix to send an email

Here you go:

Installing and Administering sendmail

http://docs.hp.com/en/B2355-90685/ch04.html
Will it remain a personal, if I broadcast it here!