From owner-freebsd-questions Tue Jan 13 16:36:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA00790 for questions-outgoing; Tue, 13 Jan 1998 16:18:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA06849 for ; Tue, 13 Jan 1998 15:33:41 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id VAA22498; Mon, 12 Jan 1998 21:35:41 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Mon, 12 Jan 1998 21:35:41 -0800 (PST) From: Doug White Reply-To: Doug White To: Francis Vidal cc: FreeBSD Questions Subject: Re: crontab question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org Precedence: bulk On Fri, 9 Jan 1998, Francis Vidal wrote: > hello everyone! > > just wondering how i can tell crontab to execute something every N hours. > is it this one: > > * */2 * * * root /usr/bin/hello > > or > > * 2,4,6,8,10,12... * * * root /usr/bin/hello Assuming the bottom ones ticks off every other hour, they are equivalent. I suggest the top one to prevent errors. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major