print output and stderr