From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 08:17:15 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 82BE337B404 for ; Wed, 9 Apr 2003 08:17:15 -0700 (PDT) Received: from cobalt.4gl.com (cobalt.4gl.com [66.212.110.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0EC343FA3 for ; Wed, 9 Apr 2003 08:17:14 -0700 (PDT) (envelope-from mbettinger@championelevators.com) Received: from helpdesk.championelevators.com (node-97-98.4gl.com [66.212.97.98] (may be forged)) by cobalt.4gl.com (8.9.3/8.9.3) with ESMTP id KAA26944 for ; Wed, 9 Apr 2003 10:28:55 -0500 From: Matthew Bettinger Organization: Champion Elevators, inc. To: freebsd-questions@freebsd.org Date: Wed, 9 Apr 2003 10:11:16 -0500 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304091011.16805.mbettinger@championelevators.com> Subject: cron stopped working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mbettinger@championelevators.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 15:17:15 -0000 Hello, I have the following crontab entry for root: via crontab -e SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin HOME=/var/log #======================================================== # Crontab entries to execute flexbackup to dump /depot /general /usr /var # on specified days. Level 0 (full) on Wed @ midnight and Incrementals # every other day at midnight -M.Bettinger 9.17.02 #======================================================== 55 23 * * 3 root /usr/local/bin/flexbackup -fs all -level 0 55 23 * * 4 root /usr/local/bin/flexbackup -fs all -level 1 55 23 * * 5 root /usr/local/bin/flexbackup -fs all -level 2 55 23 * * 6 root /usr/local/bin/flexbackup -fs all -level 3 56 23 * * 0 root /usr/local/bin/flexbackup -fs all -level 4 55 23 * * 1 root /usr/local/bin/flexbackup -fs all -level 5 55 23 * * 2 root /usr/local/bin/flexbackup -fs all -level 6 This is sopposed to run a backup script at night however it appears to not be working, or is it? In /var/log/cron shows : Apr 8 13:08:00 tester /usr/sbin/cron[75516]: (root) CMD (root /usr/local/bin/ flexbackup -fs all -level 6) If i cut and paste the exact command in sh shell it works. System info... tester# uname -a FreeBSD tester.championelevators.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Dec 5 21:58:26 CST 2002 root@tester.championelevators.com:/general/obj/usr/src/sys/GENERIC i386 tester# uptime 10:15AM up 121 days, 1:06, 1 user, load averages: 0.35, 0.09, 0.03 ps displays that cron is running. root 115 0.0 0.4 1028 448 ?? Is 9Dec02 1:48.07 /usr/sbin/cron regards, Matt Bettinger