Sys::Utmp

Object(ish) Interface to UTMP files
Download

Sys::Utmp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Stowe
  • Publisher web site:
  • http://search.cpan.org/~jstowe/

Sys::Utmp Tags


Sys::Utmp Description

Object(ish) Interface to UTMP files Sys::Utmp is a Perl module that provides a vaguely object oriented interface to the Unix user accounting file ( sometimes /etc/utmp or /var/run/utmp). Whilst it would prefer to use the getutent() function from the systems C libraries it will attempt to provide its own if they are missing.This may not be the module that you are looking for - there is a User::Utmp which provides a different procedural interface and may well be more complete for your purposes.SYNOPSIS use Sys::Utmp; my $utmp = Sys::Utmp->new(); while ( my $utent = $utmp->getutent() ) { if ( $utent->user_process ) { print $utent->ut_user," "; } } $utmp->endutent; Requirements: · Perl


Sys::Utmp Related Software