X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=O0RXPnPw0svAdPHhZDbIyuRn4kNW/6DZnUoNOD2aWLLWWQ3d21dJ5 l5E1uFOHLITsb3bw+jOubq6/vEAQMbdPkjLNk4RPHApoJEfDYH+o91jtiQdSbThy YxIIdHjM1AoUgOUAKdIEbEhLfajph7h/zlcQchbSWxK/vnozQZ01ds= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=lZ5QSaUCxrvEa/nCru3mKoHm6Jo=; b=OT1J7Z/lpqzDszVMcnt63TaZ2x1n v403VtnN/UVVdzUQL9kD23ARoorv9DmJDbAcsLuKrfu7dD/16hjFf0q/kkJVJ0S1 KVzTi32Nr8yBGEE+/+1vNicxaTjK1JrG8et6JE8/USTk1GlWD3mO2Ucif3tg0EjF /YTwFPlQB5PigcU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Mark Geisert Subject: Re: Cannot change console mode during usage of expect Date: Wed, 15 Apr 2015 22:36:43 +0000 (UTC) Lines: 44 Message-ID: References: <20150415073302 DOT GU7343 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Keith Proctor writes: > Mark Geisert writes: Please don't quote email addresses in replies. > > Keith Proctor writes: > > > BTW, I expect GetConsoleMode and SetConsoleMode is standard > > > usage by any console application. These calls work on Macintosh, > > > Windows and Cygwin window without expect. > > > > Are you sure you're using the Cygwin expect, and not a Windows-native expect > > that just happens to be on your path? > > > > ..mark > > > > > Typing which expect comes back with /usr/bin/expect. This appears > to be the standard Cygwin location. > > I did a search for expect on the system before installing Cygwin and > did not find an executable. This is a fresh 2k8 R2 VM. I did not install > another expect command from another source on the system and > DOS does not include an expect functionality that I am aware of. Web > shows that I would need to install another package such as HPs > expect or ActiveState. Fair enough. Expect communicates with spawned processes via ptys. On Cygwin ptys are implemented as Windows "named pipes". Perhaps the spawned process is trying to use those console-related Windows calls on a named pipe descriptor that it wants to believe is a console's file descriptor. In your original post you had a code snippet that showed on GetConsoleMode() failure, I think, an error message was generated. Is that error message what's being output, i.e., the name of the Windows call without any other error information? I know this subject has come up on the list before. There is a little shim one can insert "in front of" a console-oriented application that makes it think it's talking to a console instead of a pipe. I can't recall the name of that shim, though. Can I get a little help from the list please? ..mark -- 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