Hi,

What you can do is;

mailx -s "Subject" [EMAIL PROTECTED] < text

"text" is the extra text that you want to add to the mail !!
or if this is the end off a script the log or error file.
If there is more that one user you can create a mail group that you send a
mail to!!
That can be done in mail with "alias" ( read the man pages ) !!
This can also be done in a script !! So you can easy change it !!(I can't
find is so quick) I have done is to it's posible and not that dificault.

W.


> 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.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
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