Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Unix::Uptime 0.3701

    Download button

    No screenshots available
    Downloads: 217  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mike Kelly | More programs
    Perl Artistic License / FREE
    February 27th, 2012, 07:52 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Unix::Uptime description

    Determine the current uptime, in seconds, and load averages, across different *NIX architectures

    Unix::Uptime is a rather simple Perl module that abstracts the task of figuring out the current system uptime, in seconds. It was born out of a desire to do this on non-Linux systems, without SNMP. If you want to use SNMP, there are pleanty of modules on CPAN already.

    Additionally, since version 0.33_02, it supports retrieving the load average.

    Currently, this module just supports Linux, FreeBSD, Darwin (Mac OS X), OpenBSD, and NetBSD. It should be easy enough to add support for other operating systems, though.

    SYNOPSIS

     # Standard Usage
     use Unix::Uptime;

     my $uptime = Unix::Uptime->uptime(); # 2345

     # "HiRes" mode
     use Unix::Uptime qw(:hires);

     my $uptime = Unix::Uptime->uptime_hires(); # 2345.123593

     # Load Average
     my ($load1, $load5, $load15) = Unix::Uptime->load(); # (1.0, 2.0, 0.0)



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    system uptime | Perl module | Perl | UNIX | uptime

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM