This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: error starting cron on nt4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]