From Fedora Project Wiki

Revision as of 18:19, 4 May 2009 by Ynemoy (talk | contribs) (Created page with '= Introduction = From release 0.3.0 and onward, all EKG commands begin with the prefix <code>ekg-</code> EKG currently supports two types of actions, scanning and graphing. Sca...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

From release 0.3.0 and onward, all EKG commands begin with the prefix ekg-

EKG currently supports two types of actions, scanning and graphing. Scanning iterates through a list of mailing lists and pulls down metadata on each post sent to that mailing list. It stores the subject, date and time, sender and records which mailing list it came from.

EKG also requires initial setup of a database to store the data. EKG works entirely through the current working directory it is called from. In order to run, it looks for a settings.ini file to specify which mailing lists to run from. A sample settings.ini is provided by the package in /usr/share/doc/python-ekg-0.3.1/. It creates a file sqllite.db which contains the metadata and multiple directories that are caches of the downloaded data.

EKG ships with the following three commands

  • ekg-generate-tables
  • ekg-scan
  • ekg-graph

First Time Setup

To set up EKG to run in a particular directory, run the following command once.

$ ekg-generate-tables

Then, edit settings.ini to specify the mailing lists desired.

Scanning

Scanning can take several minutes for busy mailing lists the first time they are scanned. It seems currently the bottleneck is Internet bandwidth. On subsequent runs, scans are run incrementally. EKG will automatically discover which month on a particular mailing list has new messages and update only those months. If EKG fails to do so, please file a bug.

To scan:

$ ekg-scan

Graphing

Graphing is fairly quick. Currently, since EKG is in development, it does not provide sophisticated options.

Run:

$ ekg-graph