This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cron disables dialog window
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 29 Oct 2006 18:47:43 -0500
- Subject: Re: cron disables dialog window
- References: <200610291918.k9TJIeDp011590@ms-smtp-01.nyroc.rr.com>
- Reply-to: cygwin at cygwin dot com
Kevin Cella wrote:
I have a script that runs and kicks off a windows program that opens a
dialog where it automatically enters the necessary data and submits the
result. It works beautifully if I run it through a cygwin shell, but not
when executed as a cron job. When executed as a cron job, the dialog window
never appears. I have tried using cygstart and bash –l –c, but neither was
effective. Any ideas?
Yes. You'll need to reinstall 'cron' with 'cygrunsrv' using the -i parameter
to allow it to interact with the desktop or go into the Windows services
panel and alter the existing service to do the same. You may still find that
the result doesn't work quite the same as when run from the command line. If
that's the case, then there are environment settings that also need to be
added to your script. FWIW, both of these issues have come up before and
discussions on them can be found in the email archives. You can check them
out if you're interested.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/