Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 28 Dec 2001 17:50:59 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: convey Information Systems GmbH X-Priority: 3 (Normal) Message-ID: <63109515244.20011228175059@familiehaase.de> To: "Facey Brian" CC: cygwin AT cygwin DOT com Subject: Re: cron/crontab In-Reply-To: <3C2B667C.C1EEDEFB@bah.com> References: <3C2B667C DOT C1EEDEFB AT bah DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Facey, 2001-12-28 16:24:25, du schriebst: > Here is an example of my crontab. > 0 6 * * * D:/scripta > 0 6 * * * D:/scriptb Try to use Cygwin PATH syntax. > Is there something I missed? I need to get this running ASAP. If there is an error, there are logfiles in /var/log and there is also logging in the eventlog of Windoze. > Please advise. $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.2612 installed on Fri Dec 28 16:15:40 2001) # (Cron version -- $Id: crontab.c,v 1.5 2001/07/09 09:46:25 corinna Exp $) MAILTO=gerrit AT familiehaase DOT de #05 22 * * * sh /stuff/perl/Test-Smoke-1.10/smoke.sh 2>&1 25 19 * * * /bin/sh.exe /crontest.19 25 18 * * * /bin/sh.exe /crontest.18 25 17 * * * /bin/sh.exe /crontest.17 25 16 * * * /bin/sh.exe /crontest.16 25 15 * * * /bin/sh.exe /crontest.15 Now 16:25 the fourth job was done: $ cat /crontest.16 #!/bin/sh touch /crontestfile.16 $ ls -l *cron* -rwxrwxrwx 1 Gerrit Kein 34 Dec 28 16:16 crontest.15* -rwxrwxrwx 1 Gerrit Kein 34 Dec 28 16:16 crontest.16* -rwxrwxrwx 1 Gerrit Kein 34 Dec 28 16:16 crontest.17* -rwxrwxrwx 1 Gerrit Kein 34 Dec 28 16:16 crontest.18* -rwxrwxrwx 1 Gerrit Kein 34 Dec 28 16:16 crontest.19* -rw-rw-rw- 1 Gerrit SYSTEM 0 Dec 28 16:25 crontestfile.15 Well, it seems the clock of cron runs different? You may add the TZ setting to the service: cygrunsrv -I cron -d "Cygwin cron" -p /usr/sbin/cron -a -D \ -e 'TZ=CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00' -e 'CYGWIN=ntsec tty' Something like this (above is my TZ). Gerrit -- begin signature: =^..^= end -- 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/