Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 15:56:25 -0400
From:      Mike Galvez <mrg8n@virginia.edu>
To:        Mike Galvez <mike@outawhack.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Error message from Cron using rsync
Message-ID:  <20020423155625.E70264@mail.virginia.edu>
In-Reply-To: <20020422104113.A31356@mail.outawhack.net>; from mike@outawhack.net on Mon, Apr 22, 2002 at 10:41:13AM -0400
References:  <20020422104113.A31356@mail.outawhack.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I will answer my own post:

According to the man page, rsync uses ssh by default for communications between
hosts. I was confused when Cron complained that it couldn't find ssh as I thought
it would be called by rsync. Cron needs the full path to find ssh, so I added the 
following option:  -e /usr/local/bin/ssh  

The job executed with no further complaints.


On Mon, Apr 22, 2002 at 10:41:13AM -0400, Mike Galvez wrote:
> Greetings,
> 
> I'm having trouble using rsync (most likely user error). I am using 4.4
> Release with rsync version 2.5.5.
> 
> I can run the following command (as root) and I get the expected results;
> 
> /usr/local/bin/rsync -avz --delete /usr/home/jd/public_html/ www-09:/usr/home/jd/public_html
> 
> however, when I run it from root's crontab I get the following error.
> 
> 
> Failed to exec ssh : No such file or directory
> rsync error: error in IPC code (code 14) at util.c(162)
> rsync: connection unexpectedly closed (0 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(150)
> 
> 
> I have read through the man page and searched google and didn't find anything specific. I
> appreciate any help the list can provide.
> 
> Thanks
> 
> -- 
> Michael Galvez
> 
> "... And remember: if you don't like the news, go out and make some of
> your own."
>         	-- "Scoop" Nisker, KFOG radio reporter
> 		   Preposterous Words
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Michael Galvez                                             
Information Technology Specialist III 	E-Mail: mrg8n@nospam.virginia.edu
University of Virginia                  	Office: 434-982-2975 

Some people live life in the fast lane.  You're in oncoming traffic.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020423155625.E70264>