Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 09:43:43 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Schalk Erasmus <schalk@incredible.com.na>
Cc:        questions@freebsd.org
Subject:   Re: CROND - Command not found
Message-ID:  <3EF06C8F.1050704@potentialtech.com>
In-Reply-To: <005a01c3356e$63b5a830$32c8de0a@omni>
References:  <005a01c3356e$63b5a830$32c8de0a@omni>

next in thread | previous in thread | raw e-mail | index | archive | help
Schalk Erasmus wrote:
> Hi,
> 
> I've got a Script that is suppose to run every day:
> 
> The script works, when I login as root and run it manually!
> 
> # /etc/crontab - root's crontab for FreeBSD
> #
> # $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08
> #
> SHELL=/bin/sh
> PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
> HOME=/var/log
> #
> #minute hour    mday    month   wday    who     command
> #
> 30      7       *       *       *       root    /MIRRORS/mirror.sh
> 
> BUT, it can't find the command: rsync
> 
> 	-----Original Message-----
> 	From: Cron Daemon
> 	Sent: 18 June 2003 07:30 AM
> 	To: root
> 	Subject: Cron <root> /MIRRORS/mirror.sh
> 
> 	Mirroring Exim Site...
> 	rsync: not found
> 
> 	Mirroring Apache Site...
> 	rsync: not found

In the mirror.sh script, use the full path to rsync:
i.e. instead of 'rsync /from/here /to/here'
do '/usr/local/sbin/rsync /from/here /to/here'

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF06C8F.1050704>