Operating System - Tru64 Unix
1754177 Members
2860 Online
108811 Solutions
New Discussion

Email log file to my exchange ID

 
Frank_108
Occasional Contributor

Email log file to my exchange ID

Dear all,

I want to script the system monitoring tasks, and redirect the output to a file, which should be mailed to my exchange mail ID. I want to automate this activity.

Please let me know how to automate file to be mailed to my mail ID.

Thanks in advance

satish
1 REPLY 1
Pieter 't Hart
Honored Contributor

Re: Email log file to my exchange ID

configure sendmail to use the exchange server as smtp mail-relay .
within exchange server allow this sendmail- host for smtp-relaying.

then from your script
mailx -s "subjecttext" emailadress < filetosend