From: posting-list@MailAndNews.com (Jari Aalto+list.cygwin)
To: cygwin@cygwin.com
Subject: Re: How to set up crontab file in cygwin?
Date: Thu, 31 Jan 2002 11:38:00 -0000 [thread overview]
Message-ID: <elk6qp2u.fsf@blue.sea.net> (raw)
In-Reply-To: <LIEBJAJMJFLPHGCPMEBGAEAECJAA.jklcom@mindspring.com>
* 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.
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/
next prev parent reply other threads:[~2002-01-31 11:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <KOECLEOGILBHGEOOEBGNMEBFCAAA.jklcom@mindspring.com>
2002-01-05 11:27 ` Gerrit P. Haase
2002-01-28 16:01 ` Jeff Lu
2002-01-31 11:38 ` Jari Aalto+list.cygwin [this message]
2002-02-02 14:27 ` Gerrit P. Haase
2002-01-28 16:15 ` Jeff Lu
2002-01-28 16:40 ` How to start cron service " Jeff Lu
[not found] <KOECLEOGILBHGEOOEBGNIEBICAAA.jklcom@mindspring.com>
2002-01-05 17:53 ` How to set up crontab file " Gerrit P. Haase
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=elk6qp2u.fsf@blue.sea.net \
--to=posting-list@mailandnews.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).