Files
bitburner-src/markdown/bitburner.ns.ps.md
Michael Ficocelli 6073964768 DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
2026-02-03 03:40:36 -08:00

1.1 KiB
Raw Permalink Blame History

Home > bitburner > NS > ps

NS.ps() method

List running scripts on a server.

Signature:

ps(host?: string): ProcessInfo[];

Parameters

Parameter

Type

Description

host

string

(Optional) Hostname/IP of the target server. If not specified, it will be the current servers IP by default.

Returns:

ProcessInfo[]

Array with general information about all scripts running on the specified target server.

Remarks

RAM cost: 0.2 GB

Returns an array with general information about all scripts running on the specified target server.

Example

const ps = ns.ps("home");
for (const script of ps) {
  ns.tprint(`${script.filename} ${script.threads}`);
  ns.tprint(script.args);
}