delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/05/14:27:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 5 Jan 2002 20:30:10 +0100
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <13199208694.20020105203010@familiehaase.de>
To: "Jeff Lu" <jklcom AT mindspring DOT com>
CC: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: How to set up crontab file in cygwin?
In-Reply-To: <KOECLEOGILBHGEOOEBGNMEBFCAAA.jklcom@mindspring.com>
References: <KOECLEOGILBHGEOOEBGNMEBFCAAA DOT jklcom AT mindspring DOT com>
MIME-Version: 1.0

Hallo Jeff,

Please keep Cygwin related discussion on the Cygwin list.

Am 2002-01-05 um 19:16 schriebst du:

> Can you show the steps in setting up the crontab file
> and the cron job?

usage:  crontab [-u user] file
        crontab [-u user] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)

I use always joe because I'm too stupid to learn the VI:
$ export EDITOR=joe
you may use also `vim' as editor.
Then run:
$ crontab -e

In joe I get existing crontabs and if there are none then
an empty file, first line in my files is always:
MAILTO=gp at familiehaase.de           # <---- your DOT real AT adress DOT here
and then the jobs:
0 0-23/4 * * * /usr/bin/updatedb

This means:
Run: /usr/bin/updatedb at 0:00, 4:00, 8:00, 12:00, 16:00, 20:00 o'clock,
every day of the month (say every four hours).

For details how to run a job every Monday to Friday but not Saturday and
Sunday look `man crontab' & `man 5 crontab' & `man cron'


The daemon itself is installed with cygrunsrv, see in the archives:

http://cygwin.com/ml/cygwin/2001-12/msg01242.html


Gerrit
-- 
=^..^=                                        mailto:gp AT familiehaase DOT de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019