There's more than one way to do things | |
PerlMonks |
Reading from terminalby uvnew (Acolyte) |
on Nov 15, 2008 at 17:44 UTC ( [id://723810]=perlquestion: print w/replies, xml ) | Need Help?? |
uvnew has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I wrote a Perl script (on my Mac) that executes a compiled (binary) C++ file, which output I later need to analyse with my Perl script. The binary file is printing the output I need on the terminal screen, but unfortunately it doesn't write it on a file. Is there any way for Perl to gather all that output data by accessing the terminal screen after the binary run is finished, and then either write it on a file or on a Perl data structure so I could use it later in my Perl program?
Many thanks.
Back to
Seekers of Perl Wisdom
|
|