
November 16th, 2011, 10:06 AM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 1
Time spent in forums: 1 h 5 m 42 sec
Reputation Power: 0
|
|
|
UNIX command
Hi Experts,
Basically I am a SAP programmer. I don't know much about UNIX. But I got a situation, need to use UNIX command in my programming.
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
|