[lug] file handle and pipe

Ed Hill ed at eh3.com
Fri Jun 28 18:49:19 MDT 2002


On Fri, 2002-06-28 at 17:37, j davis wrote:
> Hello,
> Im a newbie. I have a var. that holds the contents of a email. I am trying
> to send the email using sendmail like this....
> 
> `/bin/echo $in{content} | sendmail jd\@taproot.bz`;

How about:

  /bin/echo $in{content} | mail -s "Subject..." jd\@taproot.bz

hth,
Ed

-- 
Edward H. Hill III, PhD 
Post-Doctoral Researcher   |  Emails:      ed at eh3.com, ehill at mines.edu
Division of ESE            |  URL:         http://www.eh3.com
Colorado School of Mines   |  Phone:       303-273-3483
Golden, CO  80401          |  Fax:         303-273-3311
Key fingerprint = 5BDE 4DA1 66BE 4F7B BC17  3A0C 932B 7266 1E76 F123



More information about the LUG mailing list