From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9048 invoked by alias); 5 Jan 2002 19:27:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 8989 invoked from network); 5 Jan 2002 19:27:12 -0000 Received: from unknown (HELO loreley.haase.dynu.com) (62.224.42.18) by sources.redhat.com with SMTP; 5 Jan 2002 19:27:12 -0000 Received: from haase.dynu.com ([192.168.1.1] helo=LORELEY) by loreley.haase.dynu.com with esmtp (Exim 3.33 #4) id 16MwWD-00008N-00; Sat, 05 Jan 2002 20:30:13 +0100 Date: Sat, 05 Jan 2002 11:27:00 -0000 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <13199208694.20020105203010@familiehaase.de> To: "Jeff Lu" CC: Cygwin Subject: Re: How to set up crontab file in cygwin? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00206.txt.bz2 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.real@adress.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@familiehaase.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/