CROND - Command not found
Bill Moran
wmoran at potentialtech.com
Wed Jun 18 06:43:45 PDT 2003
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
More information about the freebsd-questions
mailing list