Hi,
This is my first thread.
Iam trying the following:
OS: Sun
Database: DB2, Informix, Oracle
* Get the status of the database (using database command line options)
* pipe to a text file
* send mail of the text file to receiptents.
TODO1:
First step i tried to send a test message.
sendmail
myname@domain.com
This is test message (ctrl-d)
But when i check my mail box, i did not receive any message.
Where am i wrong? Any settings need to be done?
TODO2:
I have written a small shell script to get the status of the database (informix) and pipe it to a text file
something like:
onstat -d > track.txt
So the file "track.txt" will have the output of the database status.
I will be running this shell script using crontab say every 2 hours or so.
First i would like to add this file track.txt to the sendmail and send it to the receiptents.
Any leads how to add the file?
thanks