How does rsync send files via Rsh/Rexec?

Bryan Moore moorebry at
Thu Oct 30 04:18:10 EST 2003

I'm curious how rsync sends files using rsh/rexec. One method I've seen
used is to execute "cat > foo.txt"
on the remote machine, and then stream the data over the socket into that
cat process. The problem
I have with this method, is that the only way to signify an end of file, is
to close the socket.

I was hoping to find a way to send a file using rsh/rexec and be able to
signify and end of file without
having to close the socket.

Thanks... Please email me directly with response(s) as I'm not sure I've
been added to the mailing list yet.

Bryan R. Moore

Tivoli Software
IBM Software Group
11501 Burnet Road
Austin, Texas 78758
Bldg 901 6E-000

moorebry at

More information about the rsync mailing list