This is the mail archive of the cygwin@cygwin.com 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/crontab


 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@familiehaase.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/


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