in reply to Piping STDOUT
Also, this will capture both STDOUT and STDERR:
note: works in Linux/Unix systems