From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 06:43:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABEF237B401 for ; Wed, 18 Jun 2003 06:43:44 -0700 (PDT) Received: from mta3.adelphia.net (mta3.adelphia.net [64.8.50.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id F274C43FDD for ; Wed, 18 Jun 2003 06:43:43 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.161.217]) by mta3.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030618134343.PEWL1347.mta3.adelphia.net@potentialtech.com>; Wed, 18 Jun 2003 09:43:43 -0400 Message-ID: <3EF06C8F.1050704@potentialtech.com> Date: Wed, 18 Jun 2003 09:43:43 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Schalk Erasmus References: <005a01c3356e$63b5a830$32c8de0a@omni> In-Reply-To: <005a01c3356e$63b5a830$32c8de0a@omni> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: CROND - Command not found X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 13:43:45 -0000 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 /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