From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 00:50:21 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 48BF337B401 for ; Wed, 18 Jun 2003 00:50:21 -0700 (PDT) Received: from firewall.incredible.com.na (ftp.namibiansearch.com [196.20.1.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B70543FA3 for ; Wed, 18 Jun 2003 00:50:15 -0700 (PDT) (envelope-from schalk@incredible.com.na) Received: from [10.222.200.50] (helo=omni) by firewall.incredible.com.na with smtp (Exim 3.36 #1) id 19SXcN-0007JP-00 for questions@freebsd.org; Wed, 18 Jun 2003 08:44:31 +0100 From: "Schalk Erasmus" To: Date: Wed, 18 Jun 2003 08:51:12 +0100 Message-ID: <005a01c3356e$63b5a830$32c8de0a@omni> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: 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 07:50:21 -0000 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 BUT, the rsync command do exist in the path: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin I copied the rsync command to /usr/sbin, but still no luck. The original location is: /usr/local/bin: pwd /usr/local/bin ll rsy* -rwxr-xr-x 1 root wheel 528616 May 17 15:24 rsync Why can't CRON not find the command? I also tried adding the above location to the CRONTAB path, but that didn't work either. I'm sure I'm missing something small. Any assistance would be highly appreciated. Regards Schalk