printing stdout and stderr