delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/16:44:44

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
Date: Wed, 11 Jul 2001 22:30:38 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: error starting cron on nt4
Message-ID: <20010711223038.C29492@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20010711203919 DOT A29492 AT cygbert DOT vinschen DOT de> <200107112134 DOT VAA06673 AT mdve DOT oss DOT dk>
Mime-Version: 1.0
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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019