delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/18/17:21:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 18 Jul 2001 22:54:23 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cron and cygrunsrv 0.94
Message-ID: <20010718225423.S730@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001201c10fb3$37c785f0$85013d0a AT lyon DOT ixo DOT fr>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <001201c10fb3$37c785f0$85013d0a@lyon.ixo.fr>; from k_jouhari@ixo.fr on Wed, Jul 18, 2001 at 07:58:14PM +0200

On Wed, Jul 18, 2001 at 07:58:14PM +0200, Karim Jouhari wrote:
> Hi,
> 
> I manage to launch the cron service using :
>     cygrunsrv -I cron -p /usr/sbin/cron -a -D
>     cygrunsrv -S cron
> 
> If I type "ps -e", I can see that the cron process is running.
> Using "crontab -e", I set up a call to a script that prints "hello" in a log
> file. This script works pretty well on the command-line. But nothing happens
> from the cron !!! Of course my crontab setting is correct (I'm quite
> familiar with Unix stuff).
> 
> A "man cron" tells that cron is looking in /var/spool/cron/tabs for crontab
> files but on my system (Win2K professionnal) this directory does not exist
> !! Indeed, my crontab files are generated in /var/cron/tabs !

That's ok. I configured it to do so.

Try the following:

- Check the NT event log. It could give a hint what's going wrong.

- Set the env var CYGWIN to a defined value containg `ntsec' in the
  service setting:

  cygrunsrv -E cron
  cygrunsrv -R cron
  cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=tty ntsec"
  cygrunsrv -S cron

- Check your /etc/passwd AND /etc/group files. Perhaps it's better
  to regenerate them using mkpasswd and mkgroup again.

- If you still have problems try the next developers snapshot of
  Cygwin. I checked in a patch today which solves a problem when
  switching user context.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019