Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Executable > getProcessInfoByName

Executable.getProcessInfoByName() method

Get the list of processes currently running on the system, keyed by the process name. All processes with the same name will be grouped.

Signature:

static getProcessInfoByName(): Map<string, IProcessInfo[]>;

Returns:

Map<string, IProcessInfo[]>

Remarks

The underlying implementation depends on the operating system: - On Windows, this uses powershell.exe and the Get-CimInstance cmdlet. - On Unix, this uses the ps utility.