Cannot change console mode during usage of expect
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Apr 15 07:33:00 GMT 2015
On Apr 15 01:17, Keith Proctor wrote:
> Hello, my name is Keith Proctor. I test FileMaker Server and I have written
> a test suite on Macintosh. The tests work beautifully on Macintosh. I’m trying
> to Use Cygwin on Windows to reduce the amount of rewriting that I must do
> on the Windows side. The test includes a dynamically created interactive call
> that uses expect to spawn fmsadmin and then interact with fmsadmin by
> providing a user name or a password. An example is below:
>
> expect -c "spawn fmsadmin open -y -u userName
> expect -r .+:
> send myPassword\r
> interact"
>
> The issue is that the following phrases appear and won’t allow my interactive
> expect command to continue.
>
> 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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150415/25cd85cf/attachment.sig>
More information about the Cygwin
mailing list