This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: simulating console input


On 09/02/2010 03:17 PM, RISINGP1@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 non-working 'echo Y | program'.


--
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]