I normally don't invoke the interactive zmprov if I'm going to be scripting. I'm not exactly sure if this is slower or not, and I don't really bother to grab stderr or anything. I wouldn't imagine that the interactive mode is intended for scripting.
If I exit from zmprov, then the stream closes, and I can get info from both stdout and stderr. While zmprov interactive is still running, it never closes the stream. |