Thx,
That seems to work.
The only problem is that it outputs to stdout. What I need to do is capture those error(s), print a copy to stdout (which along with stderr is re-directed to my logfile) and save a copy in a variable that I can then use elsewhere.
I'm having trouble re-arranging your code to do that (save a copy)
Help..