[lug] file handle and pipe
j davis
davis_compz at hotmail.com
Fri Jun 28 21:52:29 MDT 2002
I'm sorry I should be more clear. My var is from a perl script and I
would like to stay that way. When i try this...
`/bin/echo $in{content} | sendmail jd\@taproot.bz`;
or
`/bin/echo $in{content} | mail -s "Subject..." jd\@taproot.bz`;
the mail gets there just not the contents.
?,
jd
>From: Mark Horning <rip6 at rip6.net>
>Reply-To: lug at lug.boulder.co.us
>To: lug at lug.boulder.co.us
>Subject: Re: [lug] file handle and pipe
>Date: Fri, 28 Jun 2002 19:24:11 -0600
>MIME-Version: 1.0
>Received: from [66.54.152.73] by hotmail.com (3.2) with ESMTP id
>MHotMailBEE657F8001B4004325E4236984907500; Fri, 28 Jun 2002 18:27:20 -0700
>Received: (qmail 17740 invoked by uid 0); 29 Jun 2002 01:26:56 -0000
>Received: from localhost (HELO community.tummy.com)
>(?UEo2xa/WU9ooFr3wAowETiDysfI/pFyU?@127.0.0.1) by localhost with SMTP; 29
>Jun 2002 01:26:48 -0000
>Received: (qmail 17568 invoked by alias); 29 Jun 2002 01:24:50 -0000
>Received: (qmail 17565 invoked by uid 0); 29 Jun 2002 01:24:39 -0000
>Received: from 12-254-25-186.client.attbi.com (12.254.25.186) by
>community.tummy.com with SMTP; 29 Jun 2002 01:24:37 -0000
>Received: from rip6.net (telecaster.rip6.net [192.168.1.10])by
>12-254-25-186.client.attbi.com (8.11.6/8.11.6) with ESMTP id
>g5T1OB125144for <lug at lug.boulder.co.us>; Fri, 28 Jun 2002 19:24:11 -0600
>From lug-admin at lug.boulder.co.us Fri, 28 Jun 2002 18:29:01 -0700
>Return-Path: <alias-blug_dom-lug-owner at lug.boulder.co.us>
>Delivered-To: mailman-lists.lug.boulder.co.us-lug at lists.lug.boulder.co.us
>Delivered-To: alias-blug_dom-lug at lug.boulder.co.us
>Message-ID: <3D1D0C3B.30902 at rip6.net>
>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1)
>Gecko/20020508 Netscape6/6.2.3
>X-Accept-Language: en-us
>References: <F87k4Kgwb7o0ISQuAwt000012cd at hotmail.com>
><1025311759.1151.1.camel at eddy>
>Sender: lug-admin at lug.boulder.co.us
>Errors-To: lug-admin at lug.boulder.co.us
>X-BeenThere: lug at lug.boulder.co.us
>X-Mailman-Version: 2.0.11
>Precedence: bulk
>List-Help: <mailto:lug-request at lug.boulder.co.us?subject=help>
>List-Post: <mailto:lug at lug.boulder.co.us>
>List-Subscribe:
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=subscribe>
>List-Id: Boulder (Colorado) Linux Users Group -- General Mailing List
><lug.lug.boulder.co.us>
>List-Unsubscribe:
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=unsubscribe>
>List-Archive: <http://lists.lug.boulder.co.us/pipermail/lug/>
>
>
>
>Ed Hill wrote:
>
>>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
>>
>
>Or try something like this as a function in a shell script:
>mail () {
> (
> echo "To: jd at taproot.bz"
> echo -e "Subject: some subject\n"
> echo $in{content}
> ) | /usr/lib/sendmail -t
>}
>
>or from the command line:
>(/bin/echo "To: jd at taproot.bz";/bin/echo -e "Subject: some
>subject\n";/bin/echo "$in{content}") | /usr/lib/sendmail -t
>
>
>--
>
>Mark Horning
>rip6 at rip6.net
>
>
>
>_______________________________________________
>Web Page: http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
thanks,
jd
jd at taproot.bz
http://www.taproot.bz
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the LUG
mailing list