[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



echo "Here is the file you wanted" | mutt -s "File Attached" -a 
/home/keith/somefile.tgz you at example.com

But I would rather edit the text in a vi type of environment and when I 
:wq! it would send the buffer to <stdout> and be piped through mutt.

I really don't even know if that is the best way to do it, but using 
mutt that way has worked pretty well for me so far.

Thanks a bunch.

:: Keith Morris
:: Creative Director
:: Design / Effects
:: IQ television group
:: Atlanta, GA
:: 404.255.3550
:: <a  rel="nofollow" href="http://www.iqtv.com";>http://www.iqtv.com</a>

Jerald Sheets wrote:
&gt; Well....
&gt; 
&gt; How are you getting the text &quot;in&quot;?
&gt; 
&gt; If you're going to have a &lt;STDOUT&gt; method, you need a &lt;STDIN&gt; method as
&gt; well.
&gt; 
&gt; If you will be interactively typing in, I'd use a quick &amp; dirty perl script
&gt; to gather your input   (  $input = &lt;stdin&gt; ) and then later, as you need it,
&gt; let perl output it.  ( print $input; )
&gt; 
&gt; If you are in the context of a script, and you have multiple lines coming
&gt; off &lt;STDOUT&gt;, you can pipe through the tee program which then sends your
&gt; text to both &lt;STDOUT&gt; and &lt;STDERR&gt;.  
&gt; 
&gt; Gimme a little more scenario, and I'd bet I can help you.
&gt; 
&gt; 
&gt; Jerald M. Sheets jr.
&gt; Sr. UNIX Systems Administrator
&gt; Datatrac, Inc
&gt; 770.552.3866 x2494 
&gt; *****************
&gt; 
&gt;&gt;su -
&gt; 
&gt; Password:
&gt; # cat /dev/flood &gt; /dev/earth
&gt; # rdev noah+beasts
&gt; # dd if=noah+beasts of=/dev/earth
&gt; 
&gt;  
&gt; 
&gt; 
&gt;&gt;-----Original Message-----
&gt;&gt;From: ale-bounces at ale.org [<a  rel="nofollow" href="mailto:ale-bounces";>mailto:ale-bounces</a> at ale.org] On 
&gt;&gt;Behalf Of Keith Morris
&gt;&gt;Sent: Tuesday, November 09, 2004 2:41 PM
&gt;&gt;To: Atlanta Linux Enthusiasts List
&gt;&gt;Subject: [ale] multi-line echo?
&gt;&gt;
&gt;&gt;Hey guys, I'm not terribly familiar with all of the command 
&gt;&gt;line tools 
&gt;&gt;available, but basically what I am looking for is a 
&gt;&gt;&quot;multi-line&quot; echo tool.
&gt;&gt;
&gt;&gt;I would like to be able to is be able to type in multiple lines then 
&gt;&gt;when &quot;submitted&quot; the text would be sent to stdout.
&gt;&gt;
&gt;&gt;Something like vi(m) would be fine if it could just &quot;save&quot; to stdout. 
&gt;&gt;can it?
&gt;&gt;
&gt;&gt;Thanks much!
&gt;&gt;
&gt;&gt;-- 
&gt;&gt;:: Keith Morris
&gt;&gt;:: Creative Director
&gt;&gt;:: Design / Effects
&gt;&gt;:: IQ television group
&gt;&gt;:: Atlanta, GA
&gt;&gt;:: 404.255.3550
&gt;&gt;:: <a  rel="nofollow" href="http://www.iqtv.com";>http://www.iqtv.com</a>
&gt;&gt;
&gt;&gt;
&gt;&gt;_______________________________________________
&gt;&gt;Ale mailing list
&gt;&gt;Ale at ale.org
&gt;&gt;<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; 
&gt; 



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00295" href="msg00295.html">[ale] multi-line echo?</a></strong>
<ul><li><em>From:</em> jsheets at yahoo.com (Jerald Sheets)</li></ul></li>
<li><strong><a name="00297" href="msg00297.html">[ale] multi-line echo?</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00419" href="msg00419.html">[ale] multi-line echo?</a></strong>
<ul><li><em>From:</em> jasonday at worldnet.att.net (Jason Day)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00290.html">[ale] So I'm upgrading my FC3</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00292.html">[ale] So I'm upgrading my FC3</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00299.html">[ale] multi-line echo?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00295.html">[ale] multi-line echo?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00291"><strong>Date</strong></a></li>
<li><a href="threads.html#00291"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>