| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | posting-list AT MailAndNews DOT com (Jari Aalto+list.cygwin) |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: How to set up crontab file in cygwin? |
| Keywords: | cron,cygwin,cygrunsrv,service,error |
| X-Sender-Info: | Emacs resources http://tiny-tools.sourceforge.net/ |
| http://poboxes.com/jari.aalto ICQ 'jari-aalto' 82313129 | |
| PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ | |
| References: | <LIEBJAJMJFLPHGCPMEBGAEAECJAA DOT jklcom AT mindspring DOT com> |
| Date: | Thu, 31 Jan 2002 21:48:25 +0200 |
| In-Reply-To: | <LIEBJAJMJFLPHGCPMEBGAEAECJAA.jklcom@mindspring.com> ("Jeff |
| Lu"'s message of "Mon, 28 Jan 2002 18:55:28 -0800") | |
| Message-ID: | <elk6qp2u.fsf@blue.sea.net> |
| Lines: | 31 |
| User-Agent: | Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-*-nt5.0.2195) |
| (i386-*-nt5.0.2195) | |
| MIME-Version: | 1.0 |
* Mon 2002-01-28 Jeff Lu <jklcom AT mindspring DOT com> list.cygwin
* Message-Id: <LIEBJAJMJFLPHGCPMEBGAEAECJAA DOT jklcom AT mindspring DOT 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.
Jari
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |