[ale] multi-line echo?

Jerald Sheets jsheets at yahoo.com
Tue Nov 9 15:50:12 EST 2004


How about a wrapper script for vi?

Call vi via a script (vimmer, vimage, veye are all ones I've used).  When
you come out, you should be able to capture your text on STDOUT.  Perl would
be my first guess. 

Another possibility is to use another mailer.. (sacrelige, I know!!)  Pine
does everything you're asking for.  Attahcments, encryption, GPG keys, you
name it.

--Jerald

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



More information about the Ale mailing list