X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT X-Spam-Check-By: sourceware.org Date: Thu, 2 Sep 2010 15:08:10 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <453926680.20100902150810@mtu-net.ru> To: Peter Munster , cygwin AT cygwin DOT com Subject: Re: simulating console input In-Reply-To: <20100902074703.GA11464@gaston.couberia.bzh> References: <20100902074703 DOT GA11464 AT gaston DOT couberia DOT bzh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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 AT freemail DOT 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