On Wed, Jan 24, 2001 at 02:24:37PM -0600, Denmark B. Weatherburn wrote:
> Hi Listers,
>
> I hope this posting qualifies for your acceptance.
> I'm working on a Korn shell script to using rsync to synchronize several Sun
> hosts running Solaris 2.7.
> Below is the error message that I get. I'm not sure if there is a log file
> that can provide more information, but I checked several possibilities
> including
> - the rsync configuration on both source and destination
> - the .rhosts (rsh) configuration on both source and destination
> - the backup directory on destination
> BTW, does rsync create the backup directory automatically or do I have to
> create it in my script before the call to rsync.
> - file and directory locations and permissions, etc
>
> bbanksig{opsi}/usr/local/shells/sync>time ./syncgnt.sh bbanksp
> 24-January-2001 14:07:33
> checking if bbanksp is available...
> machine is up!
> DESTMACH=bbanksp
> Password:
> Failed to exec remsh : No such file or directory
...
> rsync_func()
> {
> /usr/local/bin/sudo /usr/local/bin/rsync \
...
By default rsync uses remsh if remsh exists in the PATH of whoever compiled
rsync. It must not be in the default PATH provided by sudo. It's in
/usr/bin/remsh on my Solaris 2.7 machine. If you have rsh but not remsh, a
workaround would be for you to use '-e rsh' or to give a complete path to
the -e.
- Dave Dykstra