From owner-freebsd-isp@FreeBSD.ORG Wed Mar 26 12:10:27 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA98E37B404 for ; Wed, 26 Mar 2003 12:10:27 -0800 (PST) Received: from users.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 662D543FAF for ; Wed, 26 Mar 2003 12:10:26 -0800 (PST) (envelope-from munk@users.munk.nu) Received: from users.munk.nu (munk@localhost [127.0.0.1]) by users.munk.nu (8.12.8/8.12.8) with ESMTP id h2QKBvHP007783 for ; Wed, 26 Mar 2003 20:11:57 GMT (envelope-from munk@users.munk.nu) Received: (from munk@localhost) by users.munk.nu (8.12.8/8.12.8/Submit) id h2QKBvbc007782 for freebsd-isp@freebsd.org; Wed, 26 Mar 2003 20:11:57 GMT Date: Wed, 26 Mar 2003 20:11:57 +0000 From: Jez Hancock To: freebsd-isp@freebsd.org Message-ID: <20030326201157.GA7599@users.munk.nu> Mail-Followup-To: freebsd-isp@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: Periodic Scripts X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 20:10:58 -0000 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 ... 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. Regards, Jez