From owner-freebsd-isp@FreeBSD.ORG Tue Mar 8 23:08:38 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 0F62F1065673 for ; Tue, 8 Mar 2011 23:08:38 +0000 (UTC) (envelope-from charles@hatvany.com) Received: from gatewayone.hatvany.com (gatewayone.hatvany.com [69.26.110.235]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2268FC20 for ; Tue, 8 Mar 2011 23:08:37 +0000 (UTC) Received: from [127.0.0.1] ([10.0.0.254]) by gatewayone.hatvany.com (8.12.11/8.12.11) with ESMTP id p282QUGK058020 for ; Mon, 7 Mar 2011 21:26:30 -0500 (EST) (envelope-from charles@hatvany.com) Message-ID: <4D758AA2.1090000@hatvany.com> Date: Mon, 07 Mar 2011 20:47:14 -0500 From: Charles Hatvany User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-isp@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:08:38 -0000 Hi, I am not sure if there is a better place to ask this question. I have a shell script (single line): rsync -avz -e "ssh -i /root/cron/web-rsync-key" /usr/home/ root@10.0.0.232:/usr/home > /etc/rsync/output which works fine if I run it from a prompt as: ./etc/rsync/sync and produces output as expected to file /etc/rsync/output. crontab contains (single line): 0,10,20,30,40,50 * * * * root /etc/rsync/sync Cron log shows: Mar 7 15:40:02 web /usr/sbin/cron[66012]: (root) CMD (/etc/rsync/sync) BUT, output contains nothing (assuming I reset it to that before cron executes the job. Any ideas or a better place to ask this or a way to debug it? Thanks, Charles Hatvany Hatvany.Net