Re: Rsync in cron job fails to function

Vincent Hoffman <[email protected]> Tue, 08 Mar 2011 21:39:43 +0000
Newsgroups gmane.os.freebsd.isp
Message-ID <[email protected]>
Try using the full path to rsync.

Vince

On 08/03/2011 20:52, Charles Hatvany wrote:
> 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/
> [email protected]:/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
>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "[email protected]"

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "[email protected]"