User::Utmp 1.8
Sponsored Links
User::Utmp 1.8 Ranking & Summary
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.
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
User::Utmp 1.8 Keywords
Utmp 1.8
Perl Access
access to
ut
Utmp
utmpx
functions
file
Perl
User::Utmp
UserUtmp
User::Utmp 1.8
Libraries
Programming
Bookmark User::Utmp 1.8
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
utmpx wtmpx
utmpx solaris
functions of money
cannot create var adm utmpx
trigonometric functions
functions of the skin
functions of the liver
functions of public relations
brain functions
no utmp entry
functions math
what are the functions of the liver
blackberry perl accessories
liver functions
no utmpx entry
functions of the brain
perl access database
functions of lipids
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
Latest Software
Popular Software
Favourite Software