Hi Experts,
Basically I am a SAP programmer. I don't know much about UNIX. But I got a situation, need to use UNIX script /command in my programming.
I searched the forum and found the below code.
I would like to pass the below UNIX script in my programming code. But my programming will not allow line by line.
Can I able to pass below script in one single line.
Please share your answers.
============
outputFile="/tmp/out.html"
(
echo "From: abc@xyz"
echo "To: def@xyz"
echo "MIME-Version: 1.0"
echo "Subject: Test"
echo "Content-Type: text/html"
cat $outputFile
) | sendmail -t
============
Thanks in Advance
Raghu