Add ability to display output to stdout as well as capture it.
Add ability to display output to stdout as well as capture it.

svn-id: 00ff020da1e0a0c4c4e17a784c0ef3be7a7fbac0@131

kevina/zl,kevina/zl,kevina/zl,kevina/zl