"tailing" utmp(x)?
- From: Dean Karres <dean.karres@xxxxxxxxx>
- Date: Mon, 8 Sep 2008 08:52:28 -0700 (PDT)
Hi,
I know how to read and "tail" the Utmp files on the systems I have
access to. We now have OSX machines that are using the Utmpx system
and the records are not as straight forward to read.
I am looking at the User::Utmp modure since it will handle either type
of file. However it appears that it will read in the WHOLE Utmp(x)
file at one time and then hand the caller an array of hashes that
represents the file.
There is nothing wrong with that except I need to constantly be made
aware of new Utmp(x) entries as they appear. Closing and reopening
the Utmp(x) file and re-reading to to pull in a possible new couple of
lines seems very wasteful.
Do you have ideas?
.
- Follow-Ups:
- Re: "tailing" utmp(x)?
- From: Michael Piotrowski
- Re: "tailing" utmp(x)?
- Next by Date: Proxy method does not work using LWP::UserAgent for HTTPS request
- Next by thread: Re: "tailing" utmp(x)?
- Index(es):