Anyone have the perl unpack template for wtmp?

From: Christian Lair (nobody_at_nowhere.com)
Date: 02/09/04


Date: 09 Feb 2004 20:30:01 GMT

I'm trying to write a perl script that will parse the contents of the wtmp
file. I've looked through the utmp headers and can't quite get the unpack
template right. Here's what I've been trying:

$hp_utmp_template = "A8 A4 A12 s s s A16 l";

but it doesn't seem to work. When I run the script using simple print
statements as a test it comes back with garbage. Anyone have a working
template or see what I've done wrong with my template?

Thanks,
Christian



Relevant Pages

  • Re: OT: Quick Linux question (fairly urgent)
    ... The name didn't ring a bell (people kept alt.digitser secret from me) so ... This means if I change the page template, ... one file and re-run the "make site" Perl script again. ... was this routine outputted static HTML that I could host anywhere -- ...
    (uk.games.video.misc)
  • Re: variable interpolation and file read
    ... However the contents of $line can't be known by the perl script ... create a template with placeholders in it, ... split on either side of $myvalue and then eval ... A word of advice: Before you consider taking PG's advice on *anything*, ...
    (comp.lang.perl.misc)
  • calling a server-side perl script from within VBA
    ... I need to call a server-side perl script provided by someone else from ... within my VBA code (in a Word template). ...
    (microsoft.public.word.vba.general)
  • Re: Script
    ... > Does anyone have a basic C or perl script that looks for a file? ... > template to create check for the flcss.exe file the funlove virus leaves ... trough entire directory structure. ...
    (Security-Basics)