delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/10:11:45

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
From: Erik Bak-Mikkelsen <ebm AT oss DOT dk>
Message-Id: <200107111608.QAA03517@mdve.oss.dk>
Subject: Re: error starting cron on nt4
To: cygwin AT cygwin DOT com (Corinna Vinschen)
Date: Wed, 11 Jul 101 16:08:54 +0000 (GMT)
In-Reply-To: <20010711141556.P8578@cygbert.vinschen.de> from "Corinna Vinschen" at Jul 11, 1 02:15:56 pm
X-Mailer: ELM [version 2.4 PL25]

> 
> On Wed, Jul 11, 2001 at 01:58:18PM +0000, Erik Bak-Mikkelsen wrote:
> > Hi cygwinners,
> > please, I have a problem in starting cron on an nt4.0.
> > I have installed the cron service using the srvany from the res.kit.
> > However, when I from a bash or cmd shell issue the command:
> > myuser AT myserver /bin$ net start cron
> > 
> > I get the following error:
> > The service is not responding to the control function.
> > 
> > More help is available by typing NET HELPMSG 2186.
> > 
> > At the same time the following entry is generated in the EventLog:
> > The cron service failed to start due to the following error: 
> > The service did not respond to the start or control request in a 
> > timely fashion.  
> 
> Install it using cygrunsrv instead of srvany:
> 
>   cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=<your settings>"
> 
Great, and thanks, this solved the install and run problem of the cron daemon.
Now the service is installed under the SYSTEM account.
However, my crontab under another userid 
*/1 * * * * /cygdrive/mydrive/notepad.exe
gives an error in the EventLog saying 
The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) 
could not be found. It contains the following insertion string(s): 
/USR/SBIN/CRON : Win32 Process Id = 0x162 : Cygwin Process 
Id = 0x162 : (CRON) error (can't switch user context).

Now, I think I have read something about running cron under diiferent users but I can't figure out what it was. Maybe a limitation in NT?
The man-pages also gives something on that but not final clue. Anyone?
regards
Erik Bak-Mikkelsen

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