in reply to redirection of output
If you use unix, you should probably do this:
rsh machineA command
This will return the standard output, just as if you ran it on
the local machine.
If you want also to save the output to a file then do
rsh machineA 'command | tee filename'
(it is usually safer to use ssh instead of rsh, although
this requires more proccessing on each side for the encryption/decryption)
Cheers.