Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2003 23:08:20 -0600
From:      Scott Gerhardt <scott@g-it.ca>
To:        Anti <fearow@attbi.com>, Jez Hancock <jez.hancock@munk.nu>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Periodic Scripts
Message-ID:  <BAA7E364.3E13%scott@g-it.ca>
In-Reply-To: <20030326201958.6b163dcd.fearow@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/26/03 8:19 PM, "Anti" <fearow@attbi.com> wrote:

> On Wed, 26 Mar 2003 20:11:57 +0000
> Jez Hancock <jez.hancock@munk.nu> wrote:
> 
>> On Wed, Mar 26, 2003 at 10:42:44AM -0600, Scott Gerhardt wrote:
>>> My question is can I add a "periodic hourly" entry to crontab and create a
>>> "/usr/local/etc/periodic/hourly" directory and put the hourly scripts in
>>> this directory?  Will they be executed?
>> Create a directory:
>> 
>> /etc/periodic/hourly/
>> 
>> populating it with scripts in a manner similar to /etc/periodic/daily et al,
>> then add variables into your /etc/periodic.conf file for the daily scripts
>> and call it from cron using:
>> 
>> 1    *    *    *    *    root    periodic hourly
>> 
>> in /etc/crontab.
>> 
>> 
>> man periodic seems to suggest you can do this:
> 
> 
> better to keep custom scripts under /usr/local/etc imo... the default
> periodic.conf checks these directories as well as the ones under /etc...


Yes, I agree that it would be best to keep all the custom scripts under
/usr/local/etc, that is what I have been doing so far.

Thanks for all your great comments!


-- 
Scott Gerhardt, P.Geo.
Gerhardt Information Technologies [G-IT]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAA7E364.3E13%scott>