Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Apr 2006 19:32:08 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Marlon Martin <mmp013@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cron question
Message-ID:  <443301F8.50106@mac.com>
In-Reply-To: <b2e814f30604041603i3149fdfene6d7c4c6ec58cf21@mail.gmail.com>
References:  <b2e814f30604041603i3149fdfene6d7c4c6ec58cf21@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443301F8.50106>