Re: Redirection and additional file descriptors
2008-03-17, 13:37(+00), Kenny McCormack:
[...]
> That may be true, but Expect will give you whatever you see (or would
> have seen) on-screen. That's the best anyone can do.
Hi Kenny, could you please then post the expect based solution
you have in mind to implement the OP's request:
save cmd's stdout+stderr in log.txt and stderr in error.txt
I don't think that if you manage to do that, you can guarantee
that log.txt will have the same thing as you would have had on
screen as your solution will have to have cmd's stdout and
stderr be streams to different resources (whether they are
pipes, ptys or regular files).
--
Stéphane
|