Re: [leaf-user] Sending mail from a script

2004-03-24 Thread Roger E McClurg
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=1470alloc_id=3638op=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


[leaf-user] Sending mail from a script

2004-03-22 Thread Roger E McClurg
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.

Roger





---
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=1470alloc_id=3638op=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


Re: [leaf-user] Sending mail from a script

2004-03-22 Thread M Lu
Did you try something like

mail -s subject [EMAIL PROTECTED]   yourmessage.txt

where yourmessage.txt is the file containing your message.




- Original Message - 
From: Roger E McClurg [EMAIL PROTECTED]
To: leaf [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 3:18 PM
Subject: [leaf-user] Sending mail from a script


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


---
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=1470alloc_id=3638op=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


Re: [leaf-user] Sending mail from a script

2004-03-22 Thread Charles Steinkuehler
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=1470alloc_id=3638op=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


Re: [leaf-user] Sending mail from a script

2004-03-22 Thread JamesSturdevant
I think the syntax you're looking for is:

mail-s In Line [EMAIL PROTECTED] EOF
This is in line text
EOF
JamesS
At 03:18 PM 3/22/2004 -0500, 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.
Roger





---
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=1470alloc_id=3638op=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




---
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=1470alloc_id=3638op=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