This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: How to set up crontab file in cygwin?
- From: "Gerrit P. Haase" <gerrit at familiehaase dot de>
- To: posting-list at MailAndNews dot com (Jari Aalto+list.cygwin), cygwin at cygwin dot com
- Date: Sat, 2 Feb 2002 23:30:39 +0100
- Subject: Re: How to set up crontab file in cygwin?
- Organization: Esse keine toten Tiere
- Reply-to: gerrit at familiehaase dot de
Am 31 Jan 2002 um 21:48 hat Jari Aalto+list.cygwin geschrieben:
>* Mon 2002-01-28 Jeff Lu <jklcom@mindspring.com> list.cygwin
>* Message-Id: <LIEBJAJMJFLPHGCPMEBGAEAECJAA.jklcom@mindspring.com>
>| This is what is in my cron file
>|
>| # DO NOT EDIT THIS FILE - edit the master and reinstall.
>| # (/tmp/crontab.272 installed on Mon Jan 28 18:22:31 2002)
>| # (Cron version -- $Id: crontab.c,v 1.3 2001/06/07 17:12:28 corinna Exp $)
>| SHELL=/bin/sh
>| 0-59/2 * * * * /c/progra~1/apache~1/apache/cgi-bin/print
>|
>| I got this when try to start service
>| $ cygrunsrv -S cron
>| cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
>| The service has not been started.
>|
>| What am I doing wrong?
>
>The cron is very picky, I fought with it 4 months with very odd
>error messages until I got it right. Try this [do not change a thing!]
>
> cygrunsrv --stop "Cygwin cron" && cygrunsrv --remove "Cygwin cron"
> cygrunsrv -I "Cygwin cron" -p /usr/sbin/cron -a '-D' -e "CYGWIN=ntsec"
> cygrunsrv --start "Cygwin cron"
>
>I don't use NTFS in W2k Pro, but I still put the
>
> CYGWIN=ntsec
>
>Maybe someone can comment if there would be more appropriate value.
Have you tried CYGWIN=ntea instead of ntsec?
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/