Hi:

     I have a shell script that needs to send email via mailx. The content of 
the email is just a
"Success" or "Failure". So far it seems that there are 2 ways of doing it 
namely:


    a) Using a temporary file
       echo "Success" > "/tmp/my_mail.$$"  
       mailx -s "Test Result" [EMAIL PROTECTED] < /tmp_my_mail.$$
       rm -f /tmp/my_mail.$$

    b) using a heredoc
       mailx -s "Test Result" [EMAIL PROTECTED] <<END_OF_MAIL
Success
END_OF_MAIL

     Is there another way of doing it? I tried :
echo "Success"





      
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to