added example of redirecting both stdout and stderr