Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    TimeoutProcess 0.1.0

    Download button

    No screenshots available
    Downloads: 112  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Eugene Ching | More programs
    Other/Proprietary Li... / FREE
    April 28th, 2012, 10:33 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    TimeoutProcess description

    Run a process with a timeout attached to it

    TimeoutProcess is a Python module that provides the ability to run a process with a specified time out. You may find it useful when trying to run a process, which may not terminate in a reasonably obvious fashion. Obvious examples would be typical GUI applications which run till they are explicitly closed.

    Typical usage of TimeoutProcess looks like this:

    #!/usr/bin/env python

    import timeoutprocess

    timeoutprocess.TimeoutProcess(['notepad.exe', r'c:\\myfile.txt'], 60)


    The first argument to TimeoutProcess take the form of the arguments to subprocess.Popen(), which is a list containing the program name, and any additional arguments.

    The second argument is the time, in seconds, to allow the process to run.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    process timeout | Python library | Python | process | timeout

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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