Arve, On Friday, 2022-02-25 10:15:18 +0100, you wrote:
> ... > I'm guessing any proposed solution would fail when what you want to > capture has an interactive component like this. I think "fail" is the wrong word here. My own scripts send such quest- ions to the same device they retrieve the answer from ("/dev/tty" in my case). So both, question and answer would be missing from the log file produced by "tee", but they would appear on the screen, which seems more important to me. But you are right in that it would at least be difficult to have them in both places. Sincerely, Rainer