Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2003 20:11:57 +0000
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-isp@freebsd.org
Subject:   Re: Periodic Scripts
Message-ID:  <20030326201157.GA7599@users.munk.nu>
In-Reply-To: <BAA734A4.3DE3%scott@g-it.ca>
References:  <BAA734A4.3DE3%scott@g-it.ca>

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


SYNOPSIS
     periodic directory ...

<snip>

     If an argument is an absolute directory name it is used as is, otherwise
     it is searched for under /etc/periodic and any other directories speci-
     fied by the local_periodic setting in periodic.conf(5) (see below).

     The periodic program will run each executable file in the directory or
     directories specified.  If a file does not have the executable bit set,
     it is silently ignored.
<snip>

Regards,
Jez



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