Anyone have the perl unpack template for wtmp?
From: Christian Lair (nobody_at_nowhere.com)
Date: 02/09/04
- Next message: Security Alert: "SSRT3622 rev. 1 Bind v920"
- Previous message: Robert Klute: "Re: Is it possible to have virtual machines on HP-UX?"
- Next in thread: caliban_at_rootshell.be: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: caliban_at_rootshell.be: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: Michael Piotrowski: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: Kevin Collins: "Re: Anyone have the perl unpack template for wtmp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Security Alert: "SSRT3622 rev. 1 Bind v920"
- Previous message: Robert Klute: "Re: Is it possible to have virtual machines on HP-UX?"
- Next in thread: caliban_at_rootshell.be: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: caliban_at_rootshell.be: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: Michael Piotrowski: "Re: Anyone have the perl unpack template for wtmp?"
- Reply: Kevin Collins: "Re: Anyone have the perl unpack template for wtmp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|