Hello. This is my first time posting a question,
so please go easy on me.
I have a pure dos program that runs from a DOS 6.22 command line.
As this program runs, it send data to the screen (program status
and data). This program run all the time and to quit the program,
the user types a "Q" on the keyboard to quit the program.
I want to write a parsing program that will capture the output from the
screen and filter it using rules that I specify then save the
result into a file and display the result to the screen.
I have experiented with the OPEN "KYBD:" AS INPUT and the
OPEN "SCRN:" AS OUTPUT statements and had some success but I am
having trouble with typing "Q" to quit the first program and making
*my* program end as well. I was hoping that checking EOF would do
the trick but I don't see where the EOF character is sent where the
first program exits.
So....basicly the syntax is:
file123.exe | myprog.exe
files123.exe will output status and program data and myprog.exe
will capture that data, parse it, apply filtering rules, save
filtered results to file, and send filtered result to screen for
display. I am able to create the parsing structure and saving the
results to file. But I am just hung up on sending keyboard
data to files123.exe (pressing "Q" to quit) and having myprog.exe
recognize that files123.exe has quit and to return execution to
command.com.
I am a VB programmer by trade....but it has been awhile since I
dusted off my non-windows programming books. Thanks for the help.
The Zodiac
------------------
so please go easy on me.
I have a pure dos program that runs from a DOS 6.22 command line.
As this program runs, it send data to the screen (program status
and data). This program run all the time and to quit the program,
the user types a "Q" on the keyboard to quit the program.
I want to write a parsing program that will capture the output from the
screen and filter it using rules that I specify then save the
result into a file and display the result to the screen.
I have experiented with the OPEN "KYBD:" AS INPUT and the
OPEN "SCRN:" AS OUTPUT statements and had some success but I am
having trouble with typing "Q" to quit the first program and making
*my* program end as well. I was hoping that checking EOF would do
the trick but I don't see where the EOF character is sent where the
first program exits.
So....basicly the syntax is:
file123.exe | myprog.exe
files123.exe will output status and program data and myprog.exe
will capture that data, parse it, apply filtering rules, save
filtered results to file, and send filtered result to screen for
display. I am able to create the parsing structure and saving the
results to file. But I am just hung up on sending keyboard
data to files123.exe (pressing "Q" to quit) and having myprog.exe
recognize that files123.exe has quit and to return execution to
command.com.
I am a VB programmer by trade....but it has been awhile since I
dusted off my non-windows programming books. Thanks for the help.
The Zodiac
------------------
Comment