Gossamer Forum
Home : General : Perl Programming :

Parsing the log file

Quote Reply
Parsing the log file
 I am looking for some help.
I have a log file which is created by a batch file. The batch file has 3 different stored procedures and they run 25 times.
I need to find out how long a procedure takes to run each time.
Ex:
Procedure A took X minutes in the first run.
Procedure B took Y minutes in second run.
Procedure C took Z minutes in third run.

Procedure A took X minutes in the second run.
so on...

Is it possible?
Quote Reply
Re: [ss2004] Parsing the log file In reply to
And you needed to post a duplicate post why? Unsure

As far as I know, what you are asking can't be done. I could be wrong... but when I was looking into it a while ago, I never managed to find a solution :(

I've deleted your other post.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [ss2004] Parsing the log file In reply to
whats the log file look like or contain? Maybe if i knew what it looked like i might be able to help a little?
And also do you have control of the batch file, meaning how it produces the log file?
Quote Reply
Re: [ss2004] Parsing the log file In reply to
Benchmark::Timer is what you need.
http://www.cpan.org/...ark-Timer-0.5.readme

Bob
http://totallyfreeads.com.au