delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/13/15:53:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B2557EC.5070506@gmail.com>
Date: Sun, 13 Dec 2009 21:09:00 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Looking for the 'stdout' of a Windows application
References: <26769438 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <26769438.post@talk.nabble.com>
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

Marc Girod wrote:

> I run a proprietary application, IBM Rational cleartool.exe from cygwin.

  *shudder*

> In some usage scenarios which I am now interested in, it prompts the user
> for an interactive decision.
> I do not get this prompt under cygwin (either X --emacs shell or xterm-- or
> the Cygwin terminal.
> My process just hangs.

  It's almost certainly not hung: it's printed the prompt, which has gotten
lost somewhere, and it's now waiting for your input.  Try hitting enter.

> I get it in the Windows Command Prompt, in plain text mode, and I can reply
> there.
> I give an example below.
> 
> I tried to use the SysInternals tools to find what kind of file descriptor
> might be open while my process is hanging.
> My first surprise is that the pid reported by pslist doesn't match this
> reported under cygwin by ps.

  Perfectly normal.  That's why cygwin's ps output has the WINPID column.
(Remember, you can't properly fork or exec in windows; you have to create a
new process each time.)

> The tools I used is: handle -a -p <pid>
> (using the pid reported by: pslist cleartool)
> 
> The list is rather long, and I am not sure what to look at there.

  It's not really useful information.  Your cygcheck output would have helped
more.  When you say it doesn't work in the "Cygwin terminal", do you mean the
standard dos-box style console?  If it doesn't work there, you must have the
'tty' set in your CYGWIN environment variable; remove it.

  As for the gui terminals, there's probably nothing you can do.  Well, apart
from typing your answers blind each time it pauses...


    cheers,
      DaveK

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

- Raw text -


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