Can't call expect from a Cygwin shell script.

Damo, David David.Damo@CIBC.com
Thu Jan 14 14:16:00 GMT 2010


Thanks for the tips. I did check cygcheck -c and noticed expect was installed and it returns 0 when the script is run from the command prompt. Seems something specific only to the way the JSP is calling the shell. Maybe something is not passed.

Thanks for your help,

David

-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Jeremy Bopp
Sent: Thursday, January 14, 2010 9:08 AM
To: cygwin@cygwin.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 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


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



More information about the Cygwin mailing list