From owner-freebsd-questions Thu Apr 5 13: 3: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tethys.valhalla.net (tethys.valhalla.net [195.26.32.112]) by hub.freebsd.org (Postfix) with ESMTP id 7D92437B43C for ; Thu, 5 Apr 2001 13:02:59 -0700 (PDT) (envelope-from mark@tethys.valhalla.net) Received: by tethys.valhalla.net (Postfix, from userid 500) id A805032E7E; Thu, 5 Apr 2001 21:02:58 +0100 (BST) Date: Thu, 5 Apr 2001 21:02:58 +0100 From: Mark Drayton To: freebsd-questions@FreeBSD.ORG Subject: Re: Adding scripts to periodic? Message-ID: <20010405210258.A16131@tethys.valhalla.net> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20010405113530.A10367@tethys.valhalla.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dwalin@haldjas.folklore.ee on Thu, Apr 05, 2001 at 04:10:34PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dwalin (dwalin@haldjas.folklore.ee) wrote: > On Thu, 5 Apr 2001, Mark Drayton wrote: > > Daniel Mester (DanielM@EverAd.com) wrote: > > > What the steps should i take to add my own scripts to run with > > > "periodic"? I would like to run some scripts weekly - but i > > > cannot realize where to start. I know i can use 'crontab' this > > > way. > > > > You need to make the directory /usr/local/etc/periodic/weekly. Put > > your scripts in there (making sure they are executable) and they'll > > be run once a week. See periodic(8) and periodic.conf(5) for more > > info. > > I read from the /etc/defaults/periodic.conf, that # 999.local > weekly_local="/etc/weekly.local" # Local > scripts From man periodic: 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 specified by the local_periodic setting in periodic.conf(5) (see below). /etc/defaults/periodic.conf contains: # periodic script dirs local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" Periodic is called by 'periodic '. Periodic run scripts in the specified directory, which itself must be in /etc/periodic or $local_periodic. I'm not familiar with /etc/weekly.local. HTH, -- Mark Drayton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message