From owner-freebsd-questions@FreeBSD.ORG Wed Apr 5 00:34:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 55CD716A434 for ; Wed, 5 Apr 2006 00:34:16 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FEEE43D48 for ; Wed, 5 Apr 2006 00:34:15 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k350Ww4w074024; Tue, 4 Apr 2006 19:33:19 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <44331031.1020002@daleco.biz> Date: Tue, 04 Apr 2006 19:32:49 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chuck Swiger References: <443301F8.50106@mac.com> In-Reply-To: <443301F8.50106@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marlon Martin , freebsd-questions@freebsd.org Subject: Re: cron question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 00:34:16 -0000 Chuck Swiger wrote: >Marlon Martin wrote: > > >>i created a simple shell script: >> >>filename: rn >> >>#!/bin/sh >>rndc dumpdb >> >>what it does, is just dump the hostname and IP addresses in /var/dump >>i set the time in 2 minutes but when i checked the logs, it doesnt work any >>idea what did i missed here? >> >> > >You forgot to use the full path to rndc in your shell script. You should not >assume that the $PATH cron passes you is going to have that command available. > > And furthermore, you edited /etc/crontab or something similar instead of using crontab(1) to edit /var/cron/tabs/root. Nitpicky, to be sure, but the cause of many a heartache: http://www.freebsd.org/doc/en/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS ... not sure if this one's affected you or not, but I'm wondering.... Kevin Kinsey -- Acid absorbs 47 times its own weight in excess Reality.