[comp.lang.perl] Reading /etc/utmp with perl.

porsche@hpcvlx.cv.hp.com (John Milton) (03/07/91)

I seem to remember that while browsing through the O'Reilly Programming Perl
book, I chanced on a short perl script for reading /etc/utmp.  At the time, I
said to myself, "That's interesting, I might use it someday".  Well, someday
came yesterday, and I can't for the life of me find that script again (there
is no utmp entry in the index, I don't have the manuscript online so I can't
grep for it, and I'm not yen proficient enough in perl to reproduce it).  Short
of reading the book backwards, I probably won't find it either.  Tell me I'm
not crazy, tell me it's in there, (tell me the page too please).

John Milton
porsche@hp-pcd.cv.hp.com

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (03/08/91)

In article <100180001@hpcvlx.cv.hp.com> porsche@hpcvlx.cv.hp.com (John Milton) writes:
: 
: I seem to remember that while browsing through the O'Reilly Programming Perl
: book, I chanced on a short perl script for reading /etc/utmp.  At the time, I
: said to myself, "That's interesting, I might use it someday".  Well, someday
: came yesterday, and I can't for the life of me find that script again (there
: is no utmp entry in the index, I don't have the manuscript online so I can't
: grep for it, and I'm not yen proficient enough in perl to reproduce it).  Short
: of reading the book backwards, I probably won't find it either.  Tell me I'm
: not crazy, tell me it's in there, (tell me the page too please).

Perhaps you are remembering the who program in the eg/ subdirctory of the
distribution.  I don't recall any utmp references in the book, offhand.

Larry