in reply to Re^2: How to capture STDOUT/STDERR of a functionin thread How to capture STDOUT/STDERR of a function