delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
From: | "Damo, David" <David DOT Damo AT CIBC DOT com> |
To: | Jeremy Bopp <jeremy AT bopp DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Date: | Thu, 14 Jan 2010 09:12:50 -0500 |
Subject: | RE: Can't call expect from a Cygwin shell script. |
Message-ID: | <EDF49EC9787F914CA157FF6927D65A8830262D2034@CBMCC-X7-MBX10.ad.cibc.com> |
References: | <EDF49EC9787F914CA157FF6927D65A8830262D1FCF AT CBMCC-X7-MBX10 DOT ad DOT cibc DOT com> <4B4F20BE DOT 9040908 AT bopp DOT net> <EDF49EC9787F914CA157FF6927D65A8830262D2007 AT CBMCC-X7-MBX10 DOT ad DOT cibc DOT com> <4B4F254E DOT 6010901 AT bopp DOT net> |
In-Reply-To: | <4B4F254E.6010901@bopp.net> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Thanks for the tips. I did check cygcheck -c and noticed expect was install= ed and it returns 0 when the script is run from the command prompt. Seems s= omething specific only to the way the JSP is calling the shell. Maybe somet= hing is not passed. Thanks for your help, David -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of= Jeremy Bopp Sent: Thursday, January 14, 2010 9:08 AM To: cygwin AT cygwin DOT com Subject: Re: Can't call expect from a Cygwin shell script. Damo, David wrote: > No errors. :( Just does not run from the shell script when called from th= e 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 t= hrough 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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |