delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/17:36:38

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: <200107112309.XAA07490@mdve.oss.dk>
Subject: Re: error starting cron on nt4
To: cygwin AT cygwin DOT com (Corinna Vinschen)
Date: Wed, 11 Jul 101 23:09:10 +0000 (GMT)
In-Reply-To: <20010711223038.C29492@cygbert.vinschen.de> from "Corinna Vinschen" at Jul 11, 1 10:30:38 pm
X-Mailer: ELM [version 2.4 PL25]

> 
> On Wed, Jul 11, 2001 at 09:34:43PM +0000, Erik Bak-Mikkelsen wrote:
> > > 
> > > On Wed, Jul 11, 2001 at 07:07:53PM +0000, Erik Bak-Mikkelsen wrote:
> > > > I did an
> > > >  mkpasswd -l >/etc/passwd
> > > >  mkpasswd -g >/etc/group
> > > 
> > > Ack! That should be  `mkgroup -l >/etc/group'. Otherwise it's possible
> > > that the context switch doesn't work.
> > You got it. Sure that was the problem.
> > 
> > My crontab holding the line
> > 0-59 * * * * date>>/tmp/file
> > 
> > gives the wanted result. Meanwhile, changing to
> > 0-59 * * * * /cygdrive/mydrive/notepad.exe
> > 
> > I get windows pop-ups saying that
> > "Initialization of dynamic link library c:\....\comctl32.dll failed. the 
> > process is terminating abnormally."
> > 
> > Are there any special precautions to take when running win32 program from the cygwin cron?
> 
> That has nothing to do with cron. It's related to starting GUI apps
> from services. Each service has a property called "Allow service to
> interact with desktop" which has to be enabled for that purpose.
> You'll find that in the services MMC snap-in (W2K) resp control
> panel (NT4). And even then I wouldn't give a damn for a chance to
> start a GUI app from a Cygwin process started as service and switching
> user context without password...
OK, I get it. Indeed I have no use for a win32 gui application started 
from cron. It was just my first sample crontab. 
But from now on everything is fine and I am on my own. 
Thanks a lot.
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