This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cron malfunction after date change


> 
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]