Passing through the output generated by shell command. Also logging it.