Main > Programming > Libraries >

User::Utmp 1.8

User::Utmp 1.8

Sponsored Links

User::Utmp 1.8 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.011 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 931
Date added: 2007-04-10
Publisher: Michael Piotrowski

User::Utmp 1.8 description

User::Utmp is a Perl access to utmp- and utmpx-style databases.

SYNOPSIS

use User::Utmp qw(:constants :utmpx);
@utmp = getutx();
or, using utmp:
use User::Utmp qw(:constants :utmp);
@utmp = getut();

UNIX systems record information about current and past logins in a user accounting database. This database is realized by two files: File utmpx contains a record of all users currently logged onto the system, while file wtmpx contains a record of all logins and logouts. Some systems (such as HP-UX and AIX) also maintain a third file containing failed login attempts. The information in these files is used by commands such as who(1), last(1), write(1), or login(1).

The exact location of these files in the file system varies between operating systems, but they are typically stored in directories like /var/adm, /var/run, or /var/log. The Single UNIX Specification specifies an API for reading from and writing to these files.

The utmpx file format and functions were derived from the older utmp file format and functions. For compatibility reasons, many systems still support the utmp functions and maintain utmp database files. It is recommended, however, to use the utmpx functions instead of the obsolete utmp functions.
The User::Utmp module provides functions for reading and writing utmpx and utmp files by providing a Perl interface to the system functions.

Utmpx and utmp records are represented in Perl by hash references. The hash keys are the names of the elements of the utmpx structure. For details consult utmpx(4) (utmpx(5) on some systems). The hash values are (mostly) the same as in C.

As an example, here is a typical record as it may be returned by the getutxent(), getutxid(), getutxline() or the corresponding utmp functions:

{ut_tv => {tv_sec => 1141256698, tv_usec => 0},
ut_line => "ttyp0",
ut_time => 1141256698,
ut_id => "p0",
ut_host => ":0.0",
ut_exit => {e_termination => 0, e_exit => 2},
ut_pid => 4577,
ut_user => "mxp",
ut_type => USER_PROCESS,}

The array returned by the getutx() and getut() functions is composed of hash references like this.

User::Utmp 1.8 Screenshot

Advertisements

User::Utmp 1.8 Keywords

Bookmark User::Utmp 1.8

Hyperlink code:
Link for forum:

User::Utmp 1.8 Copyright

WareSeeker periodically updates pricing and software information of User::Utmp 1.8 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of User::Utmp 1.8 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
User::pwent is a Perl interface getpw*() functions. Free Download
Sys::Utmp::Utent is a Perl module to represent a single utmp entry. Free Download
filepp is a generic file preprocessor. Free Download
SelfLoader is a Perl module created to load functions only on demand. Free Download
Sub::ArgShortcut is a Perl module with writing functions that use default arguments. Free Download
libutempter provides a library interface for terminal emulators such as screen and xterm. Free Download
ExtUtils::ParseXS is a Perl module that converts Perl XS code into C code. Free Download
File::Remote is a Perl module to read/write/edit remote files transparently. Free Download