Skip to main content

Detect long-running processes and notify you when they're done.

Project description

``longtroll``
===========
*Detect long-running processes and notify you when they're done.*

Using ``longtroll``
-----------------

``longtroll`` pretty much does what it says on the box. In order to start
detecting long-running processes, run ``longtroll.py bind`` in your shell. From
then on, when a long-running process in that shell finishes, your notification
command will be called.

Before you start using ``longtroll``, you need to create a configuration file.
A sample configuration file can be found in the repository as
``longtrollrc-sample``. Copy this file to ``~/.longtrollrc``, or create your own.
The configuration file takes two options: ``seconds`` and ``notify``, as
follows::

seconds 10
notify echo <cmd> (pid <pid>) completed | wall

``seconds`` is the number of seconds that a process has to live before it is
considered "long-running". ``notify`` is a command that will be run when your
process completes. The tokens ``<cmd>`` and ``<pid>`` will automatically be replaced
by the command and the PID of the process that completed.

Roadmap
-------

* Add a ``longtroll.py unbind`` command

* Allow configuration of the poll time

* Some kind of notification method for when a long-running process is detected

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

longtroll-1.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file longtroll-1.0.tar.gz.

File metadata

  • Download URL: longtroll-1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for longtroll-1.0.tar.gz
Algorithm Hash digest
SHA256 319f326ebab170af3a9d1d9eeebe322cb6df9986d7d1aa207352156e65407f6e
MD5 fde34e837507f9f5d70d0fbdf15d5f55
BLAKE2b-256 61128b709efa50a41326760a1ababb9339db6840331422952e9f7a34a1952e38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page