X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B4F254E.6010901@bopp.net>
Date: Thu, 14 Jan 2010 08:08:14 -0600
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Can't call expect from a Cygwin shell script.
References: <EDF49EC9787F914CA157FF6927D65A8830262D1FCF@CBMCC-X7-MBX10.ad.cibc.com>  <4B4F20BE.9040908@bopp.net> <EDF49EC9787F914CA157FF6927D65A8830262D2007@CBMCC-X7-MBX10.ad.cibc.com>
In-Reply-To: <EDF49EC9787F914CA157FF6927D65A8830262D2007@CBMCC-X7-MBX10.ad.cibc.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Damo, David wrote:
> No errors. :( Just does not run from the shell script when called from the JSP, however the script works when called from command prompt. This same configuration works in UNIX. We need to call expect from the shell script through the JSP to capture the output.

Perhaps you are missing some required DLL for expect.  Check the exit
code after running expect.  Assuming expect failed due to a missing DLL,
the exit code should indicate that by being non-zero.

You might try reinstalling at least expect and perhaps all other Cygwin
packages.  I think cygcheck may be able to tell you what exactly might
be missing as well if you would like to debug this further.

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

