Mail Archives: cygwin/2001/07/18/17:21:25
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 -