[GnuWin32-Users] problem getting input to application in script
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
|
From: Neil M. <Nei...@ra...> - 2003-02-27 14:17:37
|
If anyone is running a 'console application' from a script and successfully= redirecting input to the application I'd like to hear about it. I have bee= n trying to do it but without success. I have a script which runs a 'console application' produced with Visual C++= v6. The script uses 'here-documents' to provide input to the application. When the script is run the application is started from the script but then = expects input from the user rather than taking it from the script. I get th= e same problem whether I use DJGPP bash or ftp.blarg.net tcsh . I'm frequen= tly re-running the same application with various inputs so input from scrip= ts would be a welcome change from typing everything in by hand. The only slightly unusual thing that the application does, is that the firs= t read is got with getche(), the echo version of getch(). The OS is NT 4. Suggestions of things to try to get round the problem would be welcome too. Regards, Neil (J Mackie). |