<<< Date Index >>>     <<< Thread Index >>>

Re: Howto run a command in message hooks



=- Patrick Schoenfeld wrote on Wed 24.Oct'07 at 17:18:54 +0200 -=

> and waits for an input ("read yn"), but mutt adds its "Press any
> key to continue...". So it seems that mutt already answers the
> question (what it shouldn't do). Also if I do press return to that
> question, it restarts the script and the game starts from the
> beginning. Endless, until i somehow force it to quit (not that
> easy).

As you've already learned, script doesn't wait for your input, it
already got it from STDIN (EOT). What you see is only the prompt
echo thrown into your regular mutt screen, while it actually already
has returned to mutt. When you press <enter> again, why should it be
any different from your first execution? Use q or x to see the
difference.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.