Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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