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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    System::Timeout 0.07

    Download button

    No screenshots available
    Downloads: 160  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    ChenGang | More programs
    Perl Artistic License / FREE
    January 17th, 2012, 13:16 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    System::Timeout description

    Extend system() to allow timeout after specified seconds

    System::Timeout is a Perl module that extends system() to allow timeout after the specified seconds. This also include a cli tool "timeout" which can be easily used to force command exit after specified seconds. This module is based on core function fork(), exec(), sleep(). These can be useful when invoking system() in daemon.

    SYNOPSIS

     use System::Timeout qw(system system_ex system_log);
     system_ex("sleep 9"); # invoke CORE::system, will not timeout exit
     system_ex("3", "sleep 9"); # timeout exit after 3 seconds

     system("3", "sleep 9"); # just an alias for system_ex, for peoples who want to overlay the Perl build-in

     system_log("3", "sleep 9"); # log the command in file



     % timeout --timeout=3 "sleep 9" #Run command "Sleep 9" and timeout after 3 seconds



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    extend system() | Perl module | timeout | system() | extend

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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