pcp
[Top] [All Lists]

Re: [pcp] PCP question ... leading to pmimport discussion

To: "kenj@xxxxxxxxxxxxxxxx" <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] PCP question ... leading to pmimport discussion
From: Greg Banks <gnb@xxxxxxxxxxx>
Date: Sat, 17 Jul 2010 05:51:02 +1000
Cc: "pmatousu@xxxxxxxxxxxxx" <pmatousu@xxxxxxxxxxxxx>, "pcp@xxxxxxxxxxx" <pcp@xxxxxxxxxxx>
In-reply-to: <1279178812.27999.10.camel@xxxxxxxxxxxxxxxx>
Organization: Evostor, Inc.
References: <1619637932.410411277773130222.JavaMail.root@xxxxxxxxxxxxxxxxxx> <1278024574.2198.1.camel@xxxxxxxxxxxxxxxx> <4C2D53C7.6070300@xxxxxxxxxxx> <1278102403.10129.12.camel@xxxxxxxxxxxxxxxx> <4C3135E2.4040900@xxxxxxxxxxx> <1278317711.21023.72.camel@xxxxxxxxxxxxxxxx> <4C32909D.6040103@xxxxxxxxxxx> <1278399475.10060.15.camel@xxxxxxxxxxxxxxxx> <1279178812.27999.10.camel@xxxxxxxxxxxxxxxx>
User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Ken McDonell wrote:
Here's a status update ... seems to work!

Attached is a csv spreadsheet from Petr that I chopped columns a bit to
reduce the data set size and added a couple of bogus test columns at the
end.

Also attached is a Perl program that uses PCP::LogImport to create a PCP
archive from the spreadsheet!

Sweet :)  The actual import loop is pretty cool.  Just one comment...

    $_ = pmiStart($archive, 0);
    die "pmiStart($archive): " . pmiErrStr($_) . "\n" if ($_ < 0);
Perl programmers would probably feel more comfortable doing something like

pmiStart($archive, 0) or die "pmiStart($archive): $?";

but I have NFI how to make that happen at the C wrapper layer (sorry).


Greg.

<Prev in Thread] Current Thread [Next in Thread>