Redirect input, output and error at demand