delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/30/07:26:35

X-Spam-Check-By: sourceware.org
Message-Id: <200610301226.k9UCQDT5029958@ms-smtp-02.nyroc.rr.com>
From: "Kevin Cella" <kcella AT nycap DOT rr DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cron disables dialog window
Date: Mon, 30 Oct 2006 07:24:31 -0500
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
In-Reply-To: <45453D9F.2020409@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

That worked perfectly, thanks.

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of
Larry Hall (Cygwin)
Sent: Sunday, October 29, 2006 6:48 PM
To: cygwin AT cygwin DOT com
Subject: Re: cron disables dialog window

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/


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

- Raw text -


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