redirect uri from stdout to file