Periodic Scripts

Anti fearow at attbi.com
Thu Mar 27 02:20:32 PST 2003


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...



More information about the freebsd-isp mailing list