From owner-freebsd-questions Thu Jan 8 20:10:11 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA07371 for questions-outgoing; Thu, 8 Jan 1998 20:10:11 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA07345 for ; Thu, 8 Jan 1998 20:10:04 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id XAA28764; Thu, 8 Jan 1998 23:09:40 -0500 (EST) Message-ID: <19980108230940.16627@emu.sourcee.com> Date: Thu, 8 Jan 1998 23:09:40 -0500 From: Norman C Rice To: Francis Vidal Cc: FreeBSD Questions Subject: Re: crontab question References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Francis Vidal on Fri, Jan 09, 1998 at 11:41:45AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Jan 09, 1998 at 11:41:45AM +0800, 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 If `N' is 2, then this will work provided that you running it from /etc/crontab. If you're running it from another user's crontab, remove the `root' field (unless root is the name of a command). > > or > > * 2,4,6,8,10,12... * * * root /usr/bin/hello > > thanks! > > --- > francis vidal | usls.NET | university of st. la salle, bacolod city, PH > PGP key available at ftp://ftp.usls.edu/pub/pgpkeys/francis.pgp > "birds of the same feathers are birds!" - rhoderick samonte's class -- Regards, Norman C. Rice, Jr.