This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: simulating console input
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: Peter Munster <pmlists at free dot fr>, cygwin at cygwin dot com
- Date: Thu, 2 Sep 2010 15:08:10 +0400
- Subject: Re: simulating console input
- References: <20100902074703.GA11464@gaston.couberia.bzh>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Peter Munster!
> I would like to run a Dos program, that needs keyboard input (just one "Y"),
> automatically via "make" in an ssh-session.
> How could I simulate the "Y" keypress?
> "echo Y | DosProgram.exe" does not work...
> The keypress is accepted only in a dos-console.
If the program reading keyboard directly, you can't do it through IO
redirection.
Look for alternatives or write a replacement, that don't block execution.
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 02.09.2010, <15:06>
Sorry for my terrible english...
--
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