Reading binary data

David M Neruocomp at
Wed Nov 23 19:12:18 CET 2005

OK so here is my task.  I want to get at the data stored in
/var/account/pacct, which stores process accounting data, so that I can
make it into a more human understandable format then what the program
sa can do.  The thing is, its in a binary format and an example program
that reads some data from the file is done in C using a struct defined
in sys/acct.h.

So I was wondering how can I do the same thing, but in python?  I'm
still learning so please be gentle.


More information about the Python-list mailing list