simulating console input
Thu Sep 2 11:10:00 GMT 2010
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
Look for alternatives or write a replacement, that don't block execution.
Andrey Repin (firstname.lastname@example.org) 02.09.2010, <15:06>
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin