Periodic Scripts

Scott Gerhardt scott at g-it.ca
Thu Mar 27 05:08:27 PST 2003


On 3/26/03 8:19 PM, "Anti" <fearow at attbi.com> wrote:

> On Wed, 26 Mar 2003 20:11:57 +0000
> Jez Hancock <jez.hancock at 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]




More information about the freebsd-isp mailing list