X-Spam-Check-By: sourceware.org Message-ID: <45453D9F.2020409@cygwin.com> Date: Sun, 29 Oct 2006 18:47:43 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cron disables dialog window References: <200610291918 DOT k9TJIeDp011590 AT ms-smtp-01 DOT nyroc DOT rr DOT com> In-Reply-To: <200610291918.k9TJIeDp011590@ms-smtp-01.nyroc.rr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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/