simulating console input
Thu Sep 2 21:17:00 GMT 2010
>On 9/2/2010 3:47 AM, Peter Münster wrote:
>> I would like to run a Dos program, that needs keyboard input (just one
>> 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.
>Then add this fact - the SSH server uses ptys. So your program will not
>work with a single character put in the input buffer. One could
>envision using 'yes' to fill the buffer of the pipe that the Windows
>interprets the pty to be. Perhaps a nicer alternative is to build the
>problematic program with Cygwin, if that's an option, so that it will
>understand the pty.
Would an inline document work?
Phil Rising, Principal Consultant for Sogeti USA, LLC
Contracted to Nationwide, Corporate Internet and Contact Center Solutions
(Work) (614) 677-7445, (Fax) (614) 677-7046
Alternate email: Phil.Rising@us.sogeti.com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin