Capture stdout to both a file and as text
Capture stdout to both a file and as text