delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/02/07:10:23

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 <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <453926680.20100902150810@mtu-net.ru>
To: Peter Munster <pmlists AT free DOT fr>, 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
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019