Rsync error

tim.conway at tim.conway at
Wed Feb 13 05:28:14 EST 2002

rsh gives a reduced environment.  if rsync on ApplServ isn't in /bin or /usr/bin, that's probably your problem.  It's such a 
common problem that somebody added the "--rsync-path=" option for just 
such needs.  In my case, i have rsync in /cadappl/encap/bin (symlinked 
into /cadappl/encap/packages/rsync.something/bin).  It's in my path, but 
not the base system path given by rsync (/bin:/usr/bin, which is really 
silly, as /bin is a symlink to /usr/bin on solaris).  "rsync 
--rsync-path=`which rsync` options source destination" should make it easy 
if your systems are identical, else, you'll have to explicitly state it 
("rsync --rsync-path=/cadappl/encap/bin/rsync options source 

Tim Conway
tim.conway at
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
".\n" '
"There are some who call me.... Tim?"

"Leslie Turkson" <lturkson at>
Sent by: rsync-admin at
02/12/2002 10:37 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        Rsync error

Whenever I ran the following command from my source server DevlServ, I get 
an error message.
rsync /files0/home/userl/test.txt ApplServ:/files0/home/userl/test.txt
The error message is:
sh: rsync: not found
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(140)
rsync exists and works fine when I use it to sync up files locally, that 
is on the source server, DevlServ. Also I have set up the .rhosts file in 
my home directory and the /etc/hosts.equiv file. The relevant ip address 
and server names can also be found in the /etc/hosts files.
I don't know what I am doing wrong.  I am not running rsync as a daemon 
nor neither do I wish to use ssh. 
I am using the rsh protocol and have rsync installed on my local server. 
The remote server ApplServ does not have rsync installed on it.
Basically I wish to make all changes on my source server and propagate the 
changes to the remote server using a cron job.

MSN Photos is the easiest way to share and print your photos: Click Here

More information about the rsync mailing list