send stdout to a file