[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] multi-line echo?
On Tue, Nov 09, 2004 at 03:28:34PM -0500, Keith Morris wrote:
> 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 feel like I'm missing something, but if you leave off the pipe and
just use the mutt command (mutt -s "File Attached" -a
/home/keith/somefile.tgz you at example.com) then mutt will start your
editor to let you edit the message, then when you exit the editor mutt
will send the message with attachment and exit.
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9