Re: simulating console input

2010-09-03 Thread Peter Münster
On Thu, Sep 02 2010, Larry Hall (Cygwin) wrote: How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... The keypress is accepted only in a dos-console. Read http://cygwin.com/cygwin-ug-net/using-effectively.html#using-console. Then add this fact - the SSH server

Re: simulating console input

2010-09-03 Thread Andy Koppe
On 3 September 2010 08:53, Peter Münster wrote: Read http://cygwin.com/cygwin-ug-net/using-effectively.html#using-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

Re: simulating console input

2010-09-03 Thread Oleksandr Gavenko
On 03.09.2010 10:53, Peter Münster wrote: So my questions are: - Is it possible to write such a program: ConsoleKeypressSimulator.exe ? Try http://www.autohotkey.com/ Or try VBScript/JScript: $ cat command.js var process = WScript.CreateObject(WScript.Shell);

Re: simulating console input

2010-09-03 Thread Peter Münster
On Fri, Sep 03 2010, Andy Koppe wrote: I've written a utility called 'conin' that translates pty input to console events. Perhaps that'll do the job. See here: http://groups.google.com/group/mintty-discuss/browse_thread/thread/1f9cf480117b8a0b Great, it works! It's as easy as echo y |

Re: simulating console input

2010-09-03 Thread Andy Koppe
On 3 September 2010 10:01, Peter Münster wrote: On Fri, Sep 03 2010, Andy Koppe wrote: I've written a utility called 'conin' that translates pty input to console events. Perhaps that'll do the job. See here: http://groups.google.com/group/mintty-discuss/browse_thread/thread/1f9cf480117b8a0b

simulating console input

2010-09-02 Thread Peter Münster
Hello, 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. TIA for any help! Peter -- Contact

Re: simulating console input

2010-09-02 Thread Andrey Repin
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

Re: simulating console input

2010-09-02 Thread Bengt-Arne Fjellner
On 2010-09-02 9:47 AM, Peter Münster wrote: Hello, 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

Re: simulating console input

2010-09-02 Thread Larry Hall (Cygwin)
On 9/2/2010 3:47 AM, Peter Münster wrote: Hello, 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.

Re: simulating console input

2010-09-02 Thread RISINGP1
On 9/2/2010 3:47 AM, Peter Münster wrote: Hello, 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

Re: simulating console input

2010-09-02 Thread Eric Blake
On 09/02/2010 03:17 PM, risin...@nationwide.com wrote: How could I simulate the Y keypress? echo Y | DosProgram.exe does not work... Would an inline document work? DosProgram.exe! Y ! No. Bash uses a pipe under the hood for here-docs, so it is no different than the already-established