eastick@me.utoronto.ca (Doug Eastick) (05/08/90)
I just tried reading a dbz history file with the dbm routines in Perl. It didn't work, which didn't suprize me. So, has anyone hacked perl to understand dbz files? Maybe a dbzopen() could be added? Since Perl is such a report-based utility, I think it should be included. Comments Larry? [DBZ is a DBM replacement that comes with the latest Cnews. It's much faster than dbm for news applications.] ...on the way to producing verbose news analysis.
chip@tct.uucp (Chip Salzenberg) (05/08/90)
According to eastick@me.utoronto.ca (Doug Eastick): >I just tried reading a dbz history file with the dbm routines in Perl. >It didn't work, which didn't suprize me. So, has anyone hacked perl >to understand dbz files? There's no need. The C News distribution includes the program "newshist", which prints the history entries of the articles named on its command line. Collect article IDs, open "newshist @IDS|", and read those history lines. The recently posted "logscan" script uses "newshist". If anyone wants a copy, just drop me a line. -- Chip Salzenberg at ComDev/TCT <chip%tct@ateng.com>, <uunet!ateng!tct!chip>
eastick@me.utoronto.ca (Doug Eastick) (05/09/90)
In article <2646DFD4.744@tct.uucp> chip@tct.uucp (Chip Salzenberg) writes: >There's no need. The C News distribution includes the program >"newshist", which prints the history entries of the articles named on >its command line. Collect article IDs, open "newshist @IDS|", and >read those history lines. Isn't that more expensive than reading the dbz file directly? Maybe I'll compile a perl with the dbz routines instead of the dbm routines (perlz?). Chip, could you mail me a copy of the log reporter? Thanks.