Logfiles E-mailed

Hi All
There are some cron jobs ,which runs 24 hrs. Log files are generated when one job fails.
So I need the log files to be emailed to my personal e-mail id. So that I can see the log files at my home If there is any error.

How can I implement this in Unix shell programming.

Thanks in advance!!

We embed the following into our scripts:

for Email_Recp in `cat $Email_Addr_Ops_Fail`
do

              mailx -s "FTP FAILED" "$Email_Recp" < $LogFile
              ReturnCd=$?

              if [ $ReturnCd -ne "0" ]
                 then
                   echo '\\n***E-mail to $Email_Recp failed regarding FTP, RC=$ReturnCode***\\n' >> $LogFile
              fi
            done
            exit 5

I hope this helps,
leslie02

mail -s "Log files" abc@xyz.com < /tmp/logfile.log

As you suggest that the log file is only generated when there is a Failure..you could run a daemon something like

while (1)
do
if [ -f $path2file ]
cat $path2file | mailx -s "Failure Alert" $yourmailid
mv $path2file $archivelocation
fi
sleep $time2poll
done

Thanks a lot Friends!!