Hi all,
I have a question in ksh which someone here I thought might answer quickly.
I have the following command to send email in my shell script.
----------------
LOG_FILE=log.txt
mailx -s "Test Message" $MY_EMAIL <$LOG_FILE
----------------
As it seems, This sends an email to MY_EMAIL attaching the text from log.txt
Now, My situation has beocme complex and I need to send text from two files in single email.. How do I do this?
----------------
LOG_FILE1=log1.txt
LOG_FILE2=log2.txt
maix -s "Combined Mail" $MY_EMAIL <$LOG_FILE1 <$LOG_FILE2
----------------
This gives an error as its bad input redirect..
How do I achieve this? Any help is greatly appreciated..
Thanks in advance,
-Chinna