Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Subject: RE: Cron malfunction after date change
Date: Fri, 5 Nov 2004 11:26:05 -0500
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E90BD28@ex02.svr.idirect.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Harig, Mark" <maharig@idirect.net>
To: "Jacek Trzmiel" <sc0rp@hot.pl>, <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id iA5GSXAd002058

> 
> cron.log, crontab.txt and cygcheck.txt attached.  Stopping 
> and starting
> cron is workaround that does resume correct cron behaviour, up until
> next date change.  I've been able to reproduce this
> (http://cygwin.com/ml/cygwin/2004-11/msg00153.html) problem also on
> WinXP with slightly older cygwin1.dll version:
> 1.5.11-snapshot-20040720-12:03:09.
> 

I concur.  It appears to be a bug in cron, or Cygwin's version of cron.

The following fails to work correctly for me:

1. Create the following crontab entry:

    * * * * * /usr/bin/date >> /tmp/date.txt

2. Start cron as a service and wait one minute.  Cron adds a line
    to /tmp/date.txt.

3. Using Windows's "Adjust Date/Time" applet, set the date to the previous
    day.

4. Wait one minute, and cron adds another line to /tmp/date.txt.

5. Using Windows's "Adjust Date/Time" applet, set the date to the current
    day.

6. Wait one (or more) minute, and cron does NOT add another line to /tmp/date.txt.

Cron should resume updating /tmp/date.txt.

If I stop the cron service and restart it, then cron resumes updating /tmp/date.txt.

---

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


