I wish to thank everyone who replied so promptly to my message. I 
appreciate all the help. I knew this had to be simple, but I was having a 
brain freeze. With you help I was able to get the script running in 2 
minutes.

Thanks again to all.

Best Regards,

Roger McClurg
[EMAIL PROTECTED]



----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.
----------------------------------------------------------------------------------------





Charles Steinkuehler <charles
@steinkuehler.net>
03/22/2004 05:01 PM
 
        To:     Roger E McClurg/CEG/[EMAIL PROTECTED]
        cc:     leaf <[EMAIL PROTECTED]>
        Subject:        Re: [leaf-user] Sending mail from a script


Roger E McClurg wrote:
> I know that mail messages are normally terminated with a control-d. Can 
> someone please tell me how to end a mail message when it is sent from a 
> script file in Bering?  I know it is a simple trick, but for the life of 

> me I cant remember it.

control-d is the keyboard equivelent for "end-of-file".  You can simply 
pipe something to (or otherwise redirect the input of) the mail command, 
which will correctly identify the end of file, ie:

echo "hello world" | mail -s test [EMAIL PROTECTED]

-or-

mail -s test [EMAIL PROTECTED] </my/test/message

-- 
Charles Steinkuehler
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
------------------------------------------------------------------------
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