>I'm currently leaning towards robustness (i.e. no interception), but >I'm open to suggestions. Maybe with the help of an Expect-like module >one could play on a safe ground, I don't know. I don't think you need do anything so sophisticated as all that, at least in order to address the particular issue under discussion. Why don't you glance at the code I sent and see whether you mightn't use such an approach? What I've effectively done is tee off the diagnostic stream alone for simplistic inspection, but left stdin and stdout completely as they were. Meanwhile, stderr--which is where the pollution problems would manifest if they were going to do so--fortuitously happens to be unbuffered, so everything moves in and out without the customary constipation such games tend to run afoul of. Just a thought. --tom