The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-17-2008
asulli01 asulli01 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Send an e-mail using ksh

Hi,

I have a small script that outputs to a text file. I need to e-mail the contents of the text file to a mail alias. However, I cannot seem to get the script to print the 'subject', my script just leaves it blank. Has anybody any ideas what is wrong?

if [ -s ~/merge_results2.txt ]
then
(echo "\nHere is the report from the RE team [unmerged files between JIL 2.0 and 2.5]...\n" ;cat ~/merge_results2.txt) | mail -s "Sync merge between 2.0 and 2.5" <my e-mail>
fi

Regards