From owner-freebsd-database@FreeBSD.ORG Tue Dec 28 14:13:19 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C668E16A4CE for ; Tue, 28 Dec 2004 14:13:19 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F97D43D1D for ; Tue, 28 Dec 2004 14:13:19 +0000 (GMT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 26EAF3D37; Tue, 28 Dec 2004 09:13:08 -0500 (EST) From: "Dan Langille" To: Andy Harrison , "Joseph E. Maxwell" Date: Tue, 28 Dec 2004 09:11:06 -0500 MIME-Version: 1.0 Message-ID: <41D1232A.226.3F1BA3A0@localhost> Priority: normal In-reply-to: References: <41CD04B9.404@jaymax.com> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-database@freebsd.org Subject: Re: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 14:13:19 -0000 On 28 Dec 2004 at 9:08, Andy Harrison wrote: > On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell > wrote: > > I am setting up a cron job to run a shell script at 1 hr interval and to > > have the output of the script sent to a user. I have this in the cron > > file inserted by crontab > > > > cat /var/cron/tabs/whoser > > > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > # (cron_reg installed on Fri Dec 24 18:13:01 2004) > > # (Cron version -- $FreeBSD: > > src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 > > 03:18:37 peter Exp $) > > 0 1 * * * > > /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl > > MAILTO=user > > > Reread the crontab manpage. 0 1 * * * doesn't mean once per hour, it > means that it will run every day at 1AM. If you want once per hour, I > believe you can do */60 * * * * For more info, see man 5 crontab: "Steps are also permitted after an asterisk, so if you want to say ``every two hours'', just use ``*/2''." This is also once per hour: 0 * * * * ... etc That runs at the top of the hour. Some people prefer to distribute the load by running at some other time, e.g. at 8 * * * * (eight minutes after the hour). -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/