Skip to content

wakterm.procinfo.get_info_for_pid(pid)

Since: Version 20220807-113146-c2fee766

The functionality described in this section requires version 20220807-113146-c2fee766 of wakterm, or a more recent version.

Returns a LocalProcessInfo object for the specified process id.

This function may return nil if it was unable to return the info.

> wakterm.procinfo.get_info_for_pid(wakterm.procinfo.pid())
{
    "argv": [
        "/home/wez/wez-personal/wakterm/target/debug/wakterm-gui",
    ],
    "children": {
        540513: {
            "argv": [
                "-zsh",
            ],
            "children": {},
            "cwd": "/home/wez",
            "executable": "/usr/bin/zsh",
            "name": "zsh",
            "pid": 540513,
            "ppid": 540450,
            "start_time": 232656896,
            "status": "Sleep",
        },
    },
    "cwd": "/home/wez/wez-personal/wakterm",
    "executable": "/home/wez/wez-personal/wakterm/target/debug/wakterm-gui",
    "name": "wakterm-gui",
    "pid": 540450,
    "ppid": 425276,
    "start_time": 8671498240,
    "status": "Run",
}