This is the mail archive of the
mailing list for the Cygwin project.
Re: cron as service problem with OLE application
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "John M. Adams" <jmadams at monkeybean dot dyndns dot org>
- Cc: cygwin at cygwin dot com
- Date: Fri, 11 Jul 2003 13:00:22 -0400 (EDT)
- Subject: Re: cron as service problem with OLE application
- Reply-to: cygwin at cygwin dot com
On Fri, 11 Jul 2003, John M. Adams wrote:
> Dear Friends,
> I have this odd problem with the latest cron. cron_diagnose seems to
> think everything is fine. I followed the instruction for reinstalling
> cron as a service. The service is set to interact with desktop.
> I want to run a perl (non-cygwin) script that starts a gui application
> and manipulates it via an OLE interface. The application is for
> downloading financial data (CSI UA).
> When cron is running as a service, the application starts, the GUI
> comes up, but it does not start the update (as requested via OLE).
> If I start cron from a shell. The application works as expected.
> Any clues?
> Thanks a lot.
Well, the one obvious difference is that cron as service runs from another
account (SYSTEM). Another could be that the mount points and environment
are different inside the application. Try adding "env > /tmp/env" and
"mount -m > /tmp/mounts" as one-time commands to your crontab and
comparing the output to that of the same commands run from a shell -- that
might provide some clues. If all else fails, you could try to run cron
from a SYSTEM-owned shell and see if that makes a difference. To get a
SYSTEM-owned shell, you could use the "at /interactive" trick (search the
archives for an example).
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html