delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/15/03:33:21

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=LY+crGLiRxJ02O5zRCyqKk4fKf3JjhExwbOdGZylAuTKebVlPgewr
T7VKDXdKsnHyNv1N6q19zp+0/KIXg9MyZqo7+DokTcRuTu4/akn7e9Doh/hZjzRD
LeC7lMGrbkSJniqMnlVTBb6F65fvNHTzDiflcc7Rt+TnQLT9Jhfyek=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=bh/mpl1brK6PgFVlKljcLTCPPSk=; b=E0Isk+pQOLmML69Eysutx9dKFXZ5
on3/ueV4YMti6YufSINnY4YCnsMGr88FICOOUn3Mgltbq57llbNFEagfZo3kbUyc
YyxJqRP8QVpOXFIOm/m+9AXIzqG956Sn6YYHWolFiPvblJUMu78vFnWsPppWAjaJ
yiG9KmDWdVv7ws8=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 15 Apr 2015 09:33:02 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cannot change console mode during usage of expect
Message-ID: <20150415073302.GU7343@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20150415T025305-586 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20150415T025305-586@post.gmane.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--+QoFl77rH4lq6But
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 15 01:17, Keith Proctor wrote:
> Hello, my name is Keith Proctor.  I test FileMaker Server and I have writ=
ten=20
> a test suite on Macintosh. The tests work beautifully on  Macintosh. I=E2=
=80=99m trying
> to Use Cygwin on Windows to reduce the amount of rewriting that I must do=
=20
> on the Windows side.    The test includes a dynamically created interacti=
ve call
> that uses expect to spawn fmsadmin and then interact with fmsadmin by=20
> providing a user name or a password.  An example is below:
>=20
> expect -c "spawn fmsadmin open -y -u userName
> expect -r .+:
> send myPassword\r
> interact"
>=20
> The issue is that the following phrases appear and won=E2=80=99t allow my=
 interactive=20
> expect command to continue.
>=20
> GetConsoleMode	// prints once
> SetConsoleMode	// prints once
> ReadConsoleInput	// spews while collecting input from the command line.

I don't understand this.  What does Cygwin expect have to do with these
underlying OS calls?!?  They only work in a console window and they are
not to be suppsoed to be used by Cygwin executables since all the
underlying OS details are (more or less) hidden behind the TTY code.
Also, how are they supposed to work in a PTY which is constituted by
Named Pipes, not a console?  And expect certainly uses PTYs to perform
its pseudo-interactive stuff.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--+QoFl77rH4lq6But
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVLhQuAAoJEPU2Bp2uRE+gZwMP/1vS8d5OMioSUYm+V+K9x8N+
FiBxwQblmpOra8InWk0AsFKRTw+WVUfBUgvRgZvIhjYLsH/h7RCOBhECMFvM9ZIu
7dZEc0GfouCsReaMlKBEPJ3qMkqHFH9riS1NM49w2lXWEN6BEHfSDOKnE5x2zLd8
Y3EbmSy0rqh8+046SuQDgH7DgdhpZf+jC3msYKCZACWvmDgYmdUNbpn6T1BS+XgM
5fNbRnWnu58fwwOoiTEc/t3iAAsuDgiI4LNZjNUDE48mEWxasLcbU/ST0YkdoagT
gi6JVcfBwzyozlLx0qdaQtmWX7OOSwNCJeM+FBhE/D6fqwvPXZjHeR6VfJwKKeZ6
8vcskT1roFZEQPO5UGpWI3GBnJ3qx3QDSRoJXvkKFh3PhnpSwTSStBpw1GjIIBmM
ShE7a3lNkK2/nLj3NczcmywJJe8nOoZAgc5Qvx4nIKF8eh6iXeyC5Jb7BiOc4lqQ
ATMQcOgaii0z5R+wX1auRIwPrvvjZwvcWkZhrnoRVjcfOzmtzOATQmZw24CBUPVk
l28RN4rmzrTGMs5/ifY6Gtm9ZxLbMlYZXun9V/6ngK3trar3HSWWY35WpSqC7YTY
JjWGzJ740b4zihgJBT1Nkpqpomzgce3lxkLiVEeHfUxbZBOG5yJ8CiOSXAbJn3tY
NOe2iEwZcYgCDM8kIbMF
=sGoA
-----END PGP SIGNATURE-----

--+QoFl77rH4lq6But--

- Raw text -


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