This is in unix aix..need a script

aixtutorial used Ask the Experts™
This is in Unix AIX..i ahve a script which send an e-mail of the contents of a file
echo "Dev" | mailx -s 'Values for tables - s_log and - a_log and  b_log'-v '' < /obie/BI/output.txt

The above script sends e-mail which has the value of the ouput.txt in the body of the e-mail..I want the output of the output.txt file in the subject of the e-mail..Can you please provide a script as how this can be done

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
mailx -s "`cat /obie/BI/output.txt`"-v '' < /obie/BI/output.txt

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial