Fetch and print stdout/stderr for a task.