From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 01:14:28 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 DAB6737B401 for ; Fri, 11 Apr 2003 01:14:28 -0700 (PDT) Received: from hotmail.com (f168.pav2.hotmail.com [64.4.37.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DB1343FDF for ; Fri, 11 Apr 2003 01:14:27 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 Apr 2003 01:14:27 -0700 Received: from 203.199.109.165 by pv2fd.pav2.hotmail.msn.com with HTTP; Fri, 11 Apr 2003 08:14:26 GMT X-Originating-IP: [203.199.109.165] X-Originating-Email: [unixtools@hotmail.com] From: "Sunil Sunder Raj" To: mbettinger@championelevators.com Date: Fri, 11 Apr 2003 13:44:26 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Apr 2003 08:14:27.0125 (UTC) FILETIME=[5E764650:01C30002] cc: freebsd-questions@freebsd.org Subject: Re: cron stopped working 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: Fri, 11 Apr 2003 08:14:29 -0000 Hi, Please change the path in /etc/crontab with the path in /root/.cshrc. You do not need to change it, just add the extra paths in /root/.cshrc to /etc/crontab. Restart the cron daemon. Regards SSR >From: Matthew Bettinger >Reply-To: mbettinger@championelevators.com >To: freebsd-questions@freebsd.org >Subject: cron stopped working >Date: Wed, 9 Apr 2003 10:11:16 -0500 > >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 > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" _________________________________________________________________ War on Iraq. See latest update. http://server1.msn.co.in/completecoverage/bushvssaddam/ News, views and more