Skip to end of metadata
Go to start of metadata

Contents

Introduction

Report on, monitor, and kill processes.

Configuration

No additional configuration supported.

Usage

Report on, monitor, and kill processes.

/g/<gid>/status [-l]
/g/<gid>/status/<fmt> [-l]
    Return the status of processes owned by a group. See
    /p/<pid>/status for more.

/n/status [-l]
/n/status/<fmt> [-l]
    Return the status of all processes. See /p/<pid>/status for
    more.

/p/<pid>/kill [<signal>]
    Send the signal to the process. The default signal is TERM.
    If the pid is negative, all processes in the process group are
    targetted.

/p/<pid>/status [-l]
/p/<pid>/status/<fmt> [-l]
    Return the status of the process. If -l is specified, a
    key=value format is used. If <fmt> is specified, then it is
    used instead of the default.

/p/<pid>/wait [<interval> [<timeout>]]
    Wait for the process to terminate. The status of the process is
    checked every interval milliseconds (default/minimum is 1000ms)
    for a maximum of timeout milliseconds (default is infinite).

/u/<uid>/status
/u/<uid>/status/<fmt> [-l]
    Return the status of processes owned by a user. See
    /p/<pid>/status for more.

The status format is a :-separated list of one or more names:
    pid, comm, cmdline, state, ppid, pgrp, sid, utime, stime,
    cutime, cstime, starttime, vsize, rss, uid, gid

The default status format is:
    pid:ppid:pgrp:sid:uid:gid:state:comm:cmdline

Examples

List all process:

ruexec +/proc/n/status

List own processes:

ruexec +/proc/$(id -u)/status

Wait on arbitrary process:

ruexec +/proc/p/123/wait

Kill process:

ruexec +/proc/p/123/kill

Kill process group:

ruexec +/proc/p/-123/kill
  • No labels