Ps()

is a basic Netscript function.
__TOC__
== Description ==
This function returns an array with general information about all scripts running on the designated target server. Each server's information is provided as an object with the following structure:
{
 filename: Script name,
 threads: Number of threads script is running with,
 args: Script's arguments,
 pid: Script's pid
}
== Usage ==
processes = ps("home");
for (let i = 0; i < processes.length; ++i) {
 tprint(processes[i].filename + ' ' + processes[i].threads);
 tprint(processes[i].args);
 tprint(processes[i].pid);
}