From owner-freebsd-questions Tue Apr 23 12:57:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from humpty.finadmin.virginia.edu (humpty.finadmin.Virginia.EDU [128.143.87.245]) by hub.freebsd.org (Postfix) with ESMTP id 2569937B49E for ; Tue, 23 Apr 2002 12:56:45 -0700 (PDT) Received: (from mrg8n@localhost) by humpty.finadmin.virginia.edu (8.11.6/8.11.6) id g3NJuP071522; Tue, 23 Apr 2002 15:56:25 -0400 (EDT) (envelope-from mrg8n@virginia.edu) X-Authentication-Warning: humpty.finadmin.virginia.edu: mrg8n set sender to mrg8n@virginia.edu using -f Date: Tue, 23 Apr 2002 15:56:25 -0400 From: Mike Galvez To: Mike Galvez Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Error message from Cron using rsync Message-ID: <20020423155625.E70264@mail.virginia.edu> References: <20020422104113.A31356@mail.outawhack.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020422104113.A31356@mail.outawhack.net>; from mike@outawhack.net on Mon, Apr 22, 2002 at 10:41:13AM -0400 X-Operating-System: FreeBSD UNIX Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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