On 2012-04-17, Luis Mochan <moc...@fis.unam.mx> wrote:
> On Tue, Apr 17, 2012 at 01:10:43PM -0300, Andrei Mikhailov wrote:
>> Thank you !
>> I think I now understand, more or less, why it does not work as expected.
>> Perhaps my question is more about Linux, than about Mutt. What I really
>> want to achieve is the following:
>> 
>>   echo "mydata" | myscript.sh
>> 
>> where myscript.sh is the following:
>> 
>>   #!/bin/bash
>>   some-program-which-reads-from-stdin.sh
>>   mutt

> If your purpose is automatically sending mail based on 'mydata' and
> the results of some-program..., maybe you shouldn't use mutt, which I
> believe is designed for interactive use.

It works fine for some cases sending mail non-interactive:

 echo "this is the message body" | mutt -s "subject here" 
username@whatever.invalid

If you want to attache file or two, just add some "-a" options.

-- 
Grant Edwards               grant.b.edwards        Yow! Mary Tyler Moore's
                                  at               SEVENTH HUSBAND is wearing
                              gmail.com            my DACRON TANK TOP in a
                                                   cheap hotel in HONOLULU!

Reply via email to