From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from server1.shellworld.net ([64.39.15.178] ident=root) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 19SAML-0002uI-00 for ; Tue, 17 Jun 2003 02:54:25 -0400 Received: from server1.shellworld.net (ldavis@LOCALHOST [127.0.0.1]) by server1.shellworld.net (8.12.8/8.11.1) with ESMTP id h5H6sPFa075291 for ; Tue, 17 Jun 2003 01:54:25 -0500 (CDT) (envelope-from ldavis@shellworld.net) Received: from localhost (ldavis@localhost) by server1.shellworld.net (8.12.8/8.12.8/Submit) with ESMTP id h5H6sP8i075288 for ; Tue, 17 Jun 2003 01:54:25 -0500 (CDT) (envelope-from ldavis@shellworld.net) X-Authentication-Warning: server1.shellworld.net: ldavis owned process doing -bs Date: Tue, 17 Jun 2003 01:54:25 -0500 (CDT) From: Luke Davis To: speakup@braille.uwo.ca Subject: Re: cron In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: Interesting. Does the end of your contrab(1) manual page, give you a "see also", to another crontab page? On Tue, 17 Jun 2003, Joseph C. Lininger wrote: > Alex, > This is what I'm running as well. I'll give you a quick run down on how the crontab file works in this version of cron. You can also look this up in the manual by looking at the man page for crond. Don't look for crontab, as this will only give you the crontab program's page. There is no man page in section 5 for crontab for this version. > > First, to edit crontab you will need to issue this command: > > crontab -e > > Make sure you set the VISUAL (notice that it's all caps) environment variable to the path to the text editor you want to use. This is the editor crontab will spawn. > > The format of this file consists of several fields. basically, the line looks like this: > > > > For any of these fields, you may use an absolute number, a list seperated by commas, or a * to indicate all values. Also, you can use a skip factor to have cron skip running the job at certin times. I'll show that in the examples below. For the field, you should use 0 for sunday through 6 for saturday. You'll want to direct the output of the command you run to /dev/null or some log file or you'll end up getting the results emailed to you. > > Ok, now a couple of examples. > > # run a command at 4:30 AM every day > 30 4 * * * somecommand > # run a command at 2:30 in the afternoon on the first of the month > 30 14 1 * * somecommand > # run a command at midnight every monday and tuesday > 0 0 * * 1,2 somecommand > # illistrates the skip factor--run a command every 15 minutes > */15 * * * * somecommand > > Ok, if you have any more questions, let me know. >