[Tutor] reading output from a c executable.

bob gailer bgailer at gmail.com
Thu Dec 11 19:41:25 CET 2008


Ravi Kondamuru wrote:
> I am trying to read a binary log file to extract system counters. 
> These counters will then be used to generate web-based graphs using 
> the chart-director api in python. For extracting the counters I 
> planning to write a program in C to read and give the output as lists 
> for use by chart-director. If possible i would like to do the parsing 
> of data only once in C on the log file and pass the processed output 
> for direct use by python. 
>
> I have thought about having to populate a database first but will 
> prefer to avoid having another intermediate datastore (apart from the 
> log file).

As you might guess I was typing my response before reading the above. So 
you answered my question.

NOW: why not read and parse the log file in Python?

-- 
Bob Gailer
Chapel Hill NC 
919-636-4239



More information about the Tutor mailing list