Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Wed, 11 Jul 2001 22:30:38 +0200
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: error starting cron on nt4
Message-ID: <20010711223038.C29492@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin@cygwin.com>
References: <20010711203919.A29492@cygbert.vinschen.de> <200107112134.VAA06673@mdve.oss.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200107112134.VAA06673@mdve.oss.dk>; from ebm@oss.dk on Wed, Jul 11, 2001 at 09:34:43PM +0000

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

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

