jonnymp316
IS-IT--Management
Hello,
I am a beginner with Perl and I was wondering how I could script with perl to read the output of file. In other words how can I parse the output from a dos application?
For instance I run...
C:\>status.exe
===============================
name=Jonny
value=10
status=10x2
===============================
name=Bobby
value=11
status=8x2
===============================
name=Freddy
value=11
status=8x2
C:\>
What I want to do is to get the values from the line where status is, while creating a loop that will continue to get the values until the end of the application (EOF). I want it to store the information in a text file (stored.txt). Wow this is a lot of work, but anyone that can help me that would be awesome. Thanks.
-Jonathan
I am a beginner with Perl and I was wondering how I could script with perl to read the output of file. In other words how can I parse the output from a dos application?
For instance I run...
C:\>status.exe
===============================
name=Jonny
value=10
status=10x2
===============================
name=Bobby
value=11
status=8x2
===============================
name=Freddy
value=11
status=8x2
C:\>
What I want to do is to get the values from the line where status is, while creating a loop that will continue to get the values until the end of the application (EOF). I want it to store the information in a text file (stored.txt). Wow this is a lot of work, but anyone that can help me that would be awesome. Thanks.
-Jonathan