As mentioned in another reply, you can use standard redirection for the
test from a file. Another method within scripts is in-line redirection:

mail -s "Error" to [EMAIL PROTECTED]<<MAILEOF
This is text into the email...
MAILEOF

Standard input is taken from the script until the matching tag is
encountered (in this case, MAILEOF). The tag can be any value, but they
have to match.

JamesS

At 05:19 PM 11/14/02 +0700, Thitiporn Pornpirunrak wrote:
>Hi all
>     I am using Bering RC3 and heard that lrp_ping_hosts doesn't work and
i want to write some script to ping my host and send mail if fail. I use
"mail" command like
>       mail -s "Error" to [EMAIL PROTECTED]
>     I have to use "CTRL+D" to send that mail. I would like to know how to
send them without CTRL+D. Anyone who know please tell me.
>
>Thank in Advance.
>Thitiporn.����^�����)�{(��[�:%y���jȜ���y˫�x2���y�"��"��-�brH^��h��Z
M.��N��䞮��
����jס���0��ak^r����v�f�W�~��f��)��+-�柺ǫ�+-��.�ǟ����a��l��b��,��
�y�+��޷�b��?�+-�w��W�~��$Em����柦�#y�h�鹿ݡ�ݡɚ����hr'u��a�i



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to