From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 04:33:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D20E16A4CE for ; Fri, 12 Mar 2004 04:33:34 -0800 (PST) Received: from mirrorball.theloosingend.net (m069c.studby.ntnu.no [129.241.130.69]) by mx1.FreeBSD.org (Postfix) with SMTP id 719AA43D31 for ; Fri, 12 Mar 2004 04:33:33 -0800 (PST) (envelope-from svein-freebsd-questions@theloosingend.net) Received: (qmail 36205 invoked by uid 1001); 12 Mar 2004 12:33:31 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Mar 2004 12:33:31 -0000 Date: Fri, 12 Mar 2004 13:33:31 +0100 (CET) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@mirrorball.theloosingend.net To: Frank Mueller In-Reply-To: <49452.141.67.67.161.1079086468.squirrel@Matrix.Iceman> Message-ID: <20040312132816.X34629@mirrorball.theloosingend.net> References: <49303.141.67.67.161.1079082429.squirrel@Matrix.Iceman> <49452.141.67.67.161.1079086468.squirrel@Matrix.Iceman> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Dave Carrera cc: freebsd-questions@freebsd.org Subject: RE: Cron job questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 12:33:34 -0000 [Dave Carrera] > So if I > > #ee /etc/crontab (I prefer ee to vi ) > > Add this > > * 2 * * * root /bin/csh /root/script.csh > > Save exit > > That should run my script at 2am every morning yes ? [Frank Mueller] > > Yes, correct. I thought that putting an * in your crontab meant that your cronjob would run for every possible value of that field, ie. that script.csh would run every day at 2.00am, 2.01am, 2.02am, ..., 2.59am The line should read: 0 2 * * * root /bin/csh /root/script.csh if you want your script run every day at 2.00 am. sve