Why do you want to uncomment those lines, when you want to see the output?
I would suggest that you leave the three lines in the source and then save the status
value when finished. This way you both see the output and save it.
Be aware that, if you are going to saave the standard error aswell you might have deadlock problems. I wrote another thread
about this a some point.