rsh -l user yourhost some_command > filewithoutput.txt