ku****@gmail.com (Hemant Kumar) wrote in message news:<87*************************@posting.google.c om>...
Hi,
I need to run a n iterations of a dos program from perl. I am using
System ("program args");
There are two interactions with DOS that I need to take care of though
1) The program spews output that goes to the DOS window. Is there a
was to absorb it and process it from perl script?
This is a FAQ: "Why can't I get the output of a command with
system()?"
It is also answered in the documentation of system() function.
2) Once the program reaches a certain point in execution, it requires
an input from the keyboard to move ahead. How can I issue this input
from the perl script.
This is covered in other FAQs: "How can I write expect in Perl?" but I
don't know how well it works on Rendmondware.
However you may do better to figure out how to prevent it pausing like
this - maybe there are some command line switches. Maybe it can be
made to read from a file instead.
This newgroup does not exist (see FAQ: "What are the Perl newsgroups
on Usenet?"). Please do no start threads here.