From owner-freebsd-questions@FreeBSD.ORG Fri Jul 13 18:03:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0DD8216A406 for ; Fri, 13 Jul 2007 18:03:39 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from cenn-smtp.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by mx1.freebsd.org (Postfix) with ESMTP id D7C5D13C4B2 for ; Fri, 13 Jul 2007 18:03:38 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from mail.tcbug.org (mail.tcbug.org [208.42.70.163]) by cenn-smtp.mc.mpls.visi.com (Postfix) with ESMTP id C893E8278; Fri, 13 Jul 2007 13:03:37 -0500 (CDT) Received: from [192.168.1.5] (unknown [192.168.2.1]) by mail.tcbug.org (Postfix) with ESMTP id 35752341C0C; Fri, 13 Jul 2007 13:03:37 -0500 (CDT) From: Josh Paetzel To: freebsd-questions@freebsd.org Date: Fri, 13 Jul 2007 13:03:33 -0500 User-Agent: KMail/1.9.6 References: <000f01c7c56d$da44d640$0200a8c0@satellite> <20070713165535.A43805@duane.dbq.yournetplus.com> In-Reply-To: <20070713165535.A43805@duane.dbq.yournetplus.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1228963.Nmo7T5k2GZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200707131303.36618.josh@tcbug.org> Cc: Dave , Duane Hill Subject: Re: cron job every 5 hours X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 18:03:39 -0000 --nextPart1228963.Nmo7T5k2GZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 13 July 2007, Duane Hill wrote: > On Fri, 13 Jul 2007 at 12:50 -0400, dmehler26@woh.rr.com=20 confabulated: > > Hello, > > I want to run an updater script, every 5 hours and x minutes. I > > thought to use: > > > > minute 5 * * * root path/to/scriptname > > crontab(5): > ... > Steps are also permitted after an asterisk, so if you want to > say ``every two hours'', just use ``*/2''. > ... > > So, my guess would be: > > minute */5 * * * root path/to/scriptname > Sort of, that would run the cronjob at midnight, 5am, 10am, 3pm, and=20 8pm so there would be one interval where it runs at 4 hours. The real method if it's imparitive to run it every 5 hours would be to=20 set up a cronjob for each day of the week, rotating by one hour. minute 0,5,10,15,20 * * 0 minute 1,6,11,16,21 * * 1 minute 2,7,12,17,22 * * 2 and so on and so forth =2D-=20 Thanks, Josh Paetzel --nextPart1228963.Nmo7T5k2GZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGl754JvkB8SevrssRAphCAJ4idx634Qv78gXGBf7rkPVawaqKAwCePvXI L0PeoDxnvE/7IZqSbIzY6iE= =ScZG -----END PGP SIGNATURE----- --nextPart1228963.Nmo7T5k2GZ--