Re: [LRP] [leaf-user] How to send mail on bering box without 'CTRL+D'

2002-11-23 Thread kerkhove
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



Re: [LRP] [leaf-user] How to send mail on bering box without 'CTRL+D'

2002-11-25 Thread John Desmond
I've been using the following when all the info is in
the subject line:
echo | mail -ssubject user@host

The echo can also be used to put something in the body
of the message.
-John

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


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

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