Sys::Info::Driver::Linux - Linux driver for Sys::Info


Sys-Info-Driver-Linux documentation Contained in the Sys-Info-Driver-Linux distribution.

Index


Code Index:

NAME

Top

Sys::Info::Driver::Linux - Linux driver for Sys::Info

SYNOPSIS

Top

    use Sys::Info::Driver::Linux;

DESCRIPTION

Top

This document describes version 0.78 of Sys::Info::Driver::Linux released on 17 April 2011.

This is the main module in the Linux driver collection.

METHODS

Top

None.

CONSTANTS

Top

proc

Automatically exported. Includes paths to several files.

AUTHOR

Top

Burak Gursoy <burak@cpan.org>.

COPYRIGHT

Top

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.


Sys-Info-Driver-Linux documentation Contained in the Sys-Info-Driver-Linux distribution.

package Sys::Info::Driver::Linux;
use strict;
use warnings;
use vars qw( $VERSION @ISA @EXPORT );
use base qw( Exporter );

$VERSION = '0.78';
@EXPORT  = qw( proc );

use constant proc => { ## no critic (NamingConventions::Capitalization)
    loadavg  => '/proc/loadavg', # average cpu load
    cpuinfo  => '/proc/cpuinfo', # cpu information
    uptime   => '/proc/uptime',  # uptime file
    version  => '/proc/version', # os version
    meminfo  => '/proc/meminfo',
    swaps    => '/proc/swaps',
    fstab    => '/etc/fstab',    # for filesystem type of the current disk
    resolv   => '/etc/resolv.conf',
    timezone => '/etc/timezone',
    issue    => '/etc/issue',
};

1;

__END__