From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16596 invoked by alias); 7 Jan 2002 11:46:13 -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 16550 invoked from network); 7 Jan 2002 11:46:05 -0000 Received: from unknown (HELO pille.addcom.de) (62.96.128.34) by sources.redhat.com with SMTP; 7 Jan 2002 11:46:05 -0000 Received: (qmail 651 invoked by uid 502); 7 Jan 2002 11:46:03 -0000 Received: from unknown (HELO iokaste.192.168.5.5) (194.162.149.29) by pille.addcom.de with SMTP; 7 Jan 2002 11:46:03 -0000 Received: from ismene.koeln.convey.de (192.168.5.3) by iokaste.192.168.5.5 (EMWAC SMTPRS 0.81) with SMTP id ; Mon, 07 Jan 2002 12:42:41 +0100 Date: Mon, 07 Jan 2002 03:46:00 -0000 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: <1487653094.20020107123636@familiehaase.de> To: cygwin@cygwin.com Subject: Re: cron In-Reply-To: <3C3978A5.83E9BA2E@bah.com> References: <3C3978A5.83E9BA2E@bah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00274.txt.bz2 Facey, 2002-01-07 11:19:44, du schriebst: > I set up cron per your suggestion with: > $ cygrunsrv -I cron -p /usr/sbin/cron -a -D \ > > -e "TZ=EST+5EDT,M4.1.0/M10.5.0" \ > > -e "CYGWIN=ntsec tty" > I still can not get cron to work after starting the service and > crontabbing my crontab file. Hmmm. I tried with a simple testscript which does nothing than a `touch testfile'. This worked. > Does the Windows Scheduling service need to be stopped? > Are my permissions (Administrator(u) None (g)) wrong on my crontab file > (user is Administrator)? > Do I need System permission to be successful? > If you have an /etc/crontab and /etc/cron.d/crontab file, are there > problems? > Does cron look first to the user's crontab, then /etc/crontab and > /etc/cron.d crontab? The crontabs are stored in /var/cron/tabs/USERNAME For each user a file with his username. I really don't know which file is looked up first. Try with a little testscript, something like this: ================================================== #!/bin/sh DATE=`date "+%Y-%m-%d-%H-%M-%S"` touch /testcron.$DATE ================================================== Save it to /testcron.sh Add: * * * * * /bin/sh /testcron.sh to you crontab, $ cd / $ ls *testcron* testcron.sh* One minute later: $ ls *testcron* testcron.2002-01-07-12-34-01 testcron.sh* Two minutes later: $ ls *testcron* testcron.2002-01-07-12-34-01 testcron.2002-01-07-12-35-01 testcron.sh* And so on. What for you now? Gerrit -- =^..^= -- 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/