From owner-freebsd-isp@FreeBSD.ORG Tue Mar 8 23:42:26 2011 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06B241065673 for ; Tue, 8 Mar 2011 23:42:26 +0000 (UTC) (envelope-from evs@telod.net) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CB3788FC14 for ; Tue, 8 Mar 2011 23:42:25 +0000 (UTC) Received: by iwn33 with SMTP id 33so6267928iwn.13 for ; Tue, 08 Mar 2011 15:42:25 -0800 (PST) Received: by 10.42.138.69 with SMTP id b5mr7144103icu.378.1299626087517; Tue, 08 Mar 2011 15:14:47 -0800 (PST) Received: from [10.18.247.247] (mobile-166-137-143-091.mycingular.net [166.137.143.91]) by mx.google.com with ESMTPS id d21sm981975ibg.21.2011.03.08.15.14.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 15:14:46 -0800 (PST) References: <4D758AA2.1090000@hatvany.com> In-Reply-To: <4D758AA2.1090000@hatvany.com> Mime-Version: 1.0 (iPhone Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <2F81A555-8A04-42E5-A150-5373EF0EA0EE@telod.net> X-Mailer: iPhone Mail (8C148) From: Shabotinsky Edward Date: Tue, 8 Mar 2011 17:14:38 -0600 To: Charles Hatvany Cc: "freebsd-isp@freebsd.org" Subject: Re: Rsync in cron job fails to function X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2011 23:42:26 -0000 I would look at the logs at remote host Sent from my iPhone On Mar 7, 2011, at 7:47 PM, Charles Hatvany wrote: > Hi, >=20 > I am not sure if there is a better place to ask this question. I have a s= hell script (single line): >=20 > rsync -avz -e "ssh -i /root/cron/web-rsync-key" /usr/home/ root@10.0.0.232= :/usr/home > /etc/rsync/output >=20 > which works fine if I run it from a prompt as: >=20 > ./etc/rsync/sync >=20 > and produces output as expected to file /etc/rsync/output. >=20 > crontab contains (single line): >=20 > 0,10,20,30,40,50 * * * * root /etc/rsync/sy= nc >=20 > Cron log shows: >=20 > Mar 7 15:40:02 web /usr/sbin/cron[66012]: (root) CMD (/etc/rsync/sync) >=20 > BUT, output contains nothing (assuming I reset it to that before cron exec= utes the job. >=20 > Any ideas or a better place to ask this or a way to debug it? >=20 > Thanks, >=20 > Charles Hatvany > Hatvany.Net >=20 > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"