delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/02/03:47:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Date: Thu, 2 Sep 2010 09:47:03 +0200
From: Peter =?utf-8?Q?M=C3=BCnster?= <pmlists AT free DOT fr>
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: simulating console input
Message-ID: <20100902074703.GA11464@gaston.couberia.bzh>
Mail-Followup-To: Cygwin List <cygwin AT cygwin DOT com>
MIME-Version: 1.0
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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 information: http://pmrb.free.fr/contact/



--
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