6 Process API

The Process API lets you start, retrieve information about, and manage native operating system processes.

With this API, you can work with operating system processes as follows:

  • Run arbitrary commands:

    • Filter running processes

    • Redirect output

    • Connect heterogeneous commands and shells by scheduling tasks to start when another ends

    • Clean up leftover processes

  • Test the running of commands:

    • Run a series of tests

    • Log output

  • Monitor commands:

    • Monitor long-running processes and restart them if they terminate

    • Collect usage statistics