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
destination").
Tim Conway
tim.conway@philips.com
303.682.4917
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,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
"Leslie Turkson" <lturkson@hotmail.com>
Sent by: rsync-admin@lists.samba.org
02/12/2002 10:37 AM
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: Rsync error
Classification:
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.
Help!!!
Leslie
MSN Photos is the easiest way to share and print your photos: Click Here