Date: Tue, 8 Mar 2011 17:14:38 -0600 From: Shabotinsky Edward <evs@telod.net> To: Charles Hatvany <charles@hatvany.com> Cc: "freebsd-isp@freebsd.org" <freebsd-isp@freebsd.org> Subject: Re: Rsync in cron job fails to function Message-ID: <2F81A555-8A04-42E5-A150-5373EF0EA0EE@telod.net> In-Reply-To: <4D758AA2.1090000@hatvany.com> References: <4D758AA2.1090000@hatvany.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I would look at the logs at remote host Sent from my iPhone On Mar 7, 2011, at 7:47 PM, Charles Hatvany <charles@hatvany.com> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F81A555-8A04-42E5-A150-5373EF0EA0EE>